@terascope/data-mate / adapters/function-adapter/utils
adapters/function-adapter/utils
Functions
callValue()
callValue<
T
>(fn
,input
,preserveNulls
,isValidator
,index
): (T
|null
)[]
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
(T
| null
)[]