This is an excerpt from Manning's book Prototype and Scriptaculous in Action. Login to get full access to this book.
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.