No Description

partition.js 280B

1234567
  1. import group from './_group.js';
  2. // Split a collection into two arrays: one whose elements all pass the given
  3. // truth test, and one whose elements all do not pass the truth test.
  4. export default group(function(result, value, pass) {
  5. result[pass ? 0 : 1].push(value);
  6. }, true);