arrayPartition

arrayPartition

> Functions

Returns a new array containing two lists: the first holds all the key/value pairs for which the callback function returned true, the second holds all the others. If the callback function takes one parameter, the value from the source array is sent; if it takes two parameters, the key and the value are sent.

Parameters
Return