src code

instance method Enumerable#partition

Enumerable#partition([iterator = Prototype.K[, context]]) → [TrueArray, FalseArray]

Partitions the elements in two groups: those regarded as true, and those considered false. By default, regular JavaScript boolean equivalence is used, but an iterator can be provided, that computes a boolean representation of the elements.