MCPcopy
hub / github.com/alibaba/x-render / isArray

Function isArray

packages/form-render/src/utils/index.ts:20–23  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

18}
19
20export const isArray = (data: any) => {
21 const str = Object.prototype.toString.call(data);
22 return str.indexOf('Array') > -1;
23}
24
25export const isFunction = (data: any) => typeof data === 'function';
26

Callers 15

filterHiddenDataFunction · 0.90
getPathFunction · 0.90
getFieldPropsFunction · 0.90
recursiveObjFunction · 0.90
recursionArrayFunction · 0.90
isHasExpressionFunction · 0.90
parseAllExpressionFunction · 0.90
recursiveArrayFunction · 0.90
recursiveObjFunction · 0.90
traverseArrayFunction · 0.90
traverseObjFunction · 0.90
transformFieldsDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected