StringMap
Iterates over all elements in a string and returns a new mapped string
Method Signature
StringMap(list=[string], callback=[function:Function], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean], parallel=[boolean], maxThreads=[any], virtual=[boolean])Arguments
Argument
Type
Required
Description
Default
list
string
true
callback
function:Function
true
The callback which returns a boolean and filters the string
delimiter
string
false
,
includeEmptyFields
boolean
false
false
multiCharacterDelimiter
boolean
false
false
parallel
boolean
false
false
maxThreads
any
false
virtual
boolean
false
false
Examples
Full function
Map each element of the string to a new value.
Result: hijklmn
Member function
Map each element of the string to a new value.
Result: hijklmn
Additional Examples
Related
Last updated
Was this helpful?
