MCPcopy
hub / github.com/tinymce/tinymce / isArrayLike

Function isArrayLike

modules/tinymce/src/core/main/ts/util/ArrUtils.ts:13–14  ·  view source on GitHub ↗
(o: Record<string, T> | ArrayLike<T>)

Source from the content-addressed store, hash-verified

11export type ObjCallback<T, R> = (this: any, value: T, key: string, obj: Record<string, T>) => R;
12
13const isArrayLike = <T>(o: Record<string, T> | ArrayLike<T>): o is ArrayLike<T> =>
14 o.length !== undefined;
15
16const isArray = Array.isArray;
17

Callers 1

eachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…