Skip to main content

@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

ParameterType
fn(input, index) => unknown
inputunknown
preserveNullsboolean
isValidatorboolean
indexnumber

Returns

(T | null)[]

Source

data-mate/src/adapters/function-adapter/utils.ts:7