@terascope/data-mate / adapters/function-adapter/utils
adapters/function-adapter/utils
Functions
callValue()
callValue<
T
>(fn
,input
,preserveNulls
,isValidator
,index
): (null
|T
)[]
Defined in: data-mate/src/adapters/function-adapter/utils.ts:7
This function is used to call a function on a value or recursively on a list/sub-list of values This is more equivalent to ProcessMode.INDIVIDUAL_VALUES for the function adapter
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
fn | (input , index ) => unknown |
input | unknown |
preserveNulls | boolean |
isValidator | boolean |
index | number |
Returns
(null
| T
)[]