ListMap

Used to iterate over a delimited list and run the function closure for each item in the list and create a new list from the returned values.

Method Signature

ListMap(list=[string], callback=[function], delimiter=[string], includeEmptyFields=[boolean], parallel=[boolean], maxThreads=[integer])

Arguments

ArgumentTypeRequiredDescriptionDefault

list

string

true

The delimited list to perform operations on

callback

function

true

The function to invoke for each item. The function will be passed 3 arguments: the value, the index, the array.

delimiter

string

false

string the list delimiter

,

includeEmptyFields

boolean

false

boolean whether to include empty fields in the returned result

false

parallel

boolean

false

false

maxThreads

integer

false

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC