"use strict"; module.exports = function splitFilter(array, predicate) { let truthy = []; let falsy = []; for (let item of array) { if (predicate(item)) { truthy.push(item); } else { falsy.push(item); } } return [ truthy, falsy ]; };