ArrayFlatten
nested = [ 1, [ 2, [ 3 ] ] ];
nested.flatten(); // [ 1, 2, 3 ]
nested.flatten( 1 ); // [ 1, 2, [ 3 ] ]
Method Signature
ArrayFlatten(array=[array], depth=[integer])Arguments
Argument
Type
Required
Description
Default
Examples
Related
Last updated
Was this helpful?
