concept partition in category javascript

appears as: partition, The partition
Prototype and Scriptaculous in Action

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.

The partition() method returns an Array containing two elements, each of which is an Array. The first Array contains all those elements that have passed the test, and the second contains those that haven’t.