MCPcopy Create free account
hub / github.com/apitable/apitable / isArrayParam

Function isArrayParam

packages/core/src/formula_parser/functions/numeric.ts:32–40  ·  view source on GitHub ↗
(params: IFormulaParam<any>[])

Source from the content-addressed store, hash-verified

30type NumericType = number | null;
31
32function isArrayParam(params: IFormulaParam<any>[]): params is [IFormulaParam<any[] | null>] {
33 if (params.length !== 1) {
34 return false;
35 }
36 if (params[0]!.node.valueType === BasicValueType.Array) {
37 return true;
38 }
39 return false;
40}
41
42function isArrayNodes(nodes?: AstNode[]) {
43 if (!nodes || nodes.length !== 1) {

Callers 3

funcMethod · 0.70
funcMethod · 0.70
calcMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected