MCPcopy Index your code
hub / github.com/tinymce/tinymce / explode

Function explode

modules/tinymce/src/core/main/ts/api/util/Tools.ts:188–196  ·  view source on GitHub ↗
(s: string | string[], d?: string | RegExp)

Source from the content-addressed store, hash-verified

186 * const arr = tinymce.explode('a, b, c');
187 */
188const explode = (s: string | string[], d?: string | RegExp): string[] => {
189 if (Type.isArray(s)) {
190 return s;
191 } else if (s === '') {
192 return [];
193 } else {
194 return ArrUtils.map(s.split(d || ','), trim);
195 }
196};
197
198const _addCacheSuffix = (url: string): string => {
199 const cacheSuffix = Env.cacheSuffix;

Callers 7

addFilterFunction · 0.85
removeFilterFunction · 0.85
parseShortcutFunction · 0.85
addMethod · 0.85
createShortcutMethod · 0.85
compileElementMapFunction · 0.85
setupFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…