Function
isArrayParam
(params: IFormulaParam<any>[])
Source from the content-addressed store, hash-verified
| 30 | type NumericType = number | null; |
| 31 | |
| 32 | function 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 | |
| 42 | function isArrayNodes(nodes?: AstNode[]) { |
| 43 | if (!nodes || nodes.length !== 1) { |
Tested by
no test coverage detected