Files
k8s-set-context/node_modules/underscore/modules/partition.js
github-actions[bot] 52d71d28bd Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-29 15:41:55 -04:00

8 lines
280 B
JavaScript

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