ArrayFlatMap
values = [ 1, 2, 3 ];
values.flatMap( ( value ) => [ value, value * 10 ] );
// [ 1, 10, 2, 20, 3, 30 ]
Method Signature
ArrayFlatMap(array=[array], callback=[function:Function], parallel=[boolean], maxThreads=[any], virtual=[boolean])Arguments
Argument
Type
Required
Description
Default
Examples
Related
Last updated
Was this helpful?
