index.js
/**
 * partition: Takes an array and a function that will call each element, index, and collection. 
 * The elements that return true will be pushed into a new array. The elements that return false will pushed into a new array.
 * The  end result will be a BIG array that has two subarrays each contains true and falsy values. 
 * 
 * 
 * @param {Array} array: array that has truthy and falsy values
 * @param {function} test: function that returns true if values given are true
 * 
 * @return {Array}: An array that has an array of true values and another array of false values
 * 
 */
Takes an array and a function that will call each element, index, and collection.
The elements that return true will be pushed into a new array. The elements that return false will pushed into a new array.
The  end result will be a BIG array that has two subarrays each contains true and falsy values.

@param {Array} array: array that has truthy and falsy values
@param {function} test: function that returns true if values given are true

@return {Array}: An array that has an array of true values and another array of false values
Takes an array and a function that will call each element index and collection . The elements that return true will be pushed into a new array . The elements that return false will pushed into a new array . The end result will be a BIG array that has two subarrays each contains true and falsy values . @param { Array } array : array that has truthy and falsy values @param { function } test : function that returns true if values given are true @return { Array } : An array that has an array of true values and another array of false values
function partition(array, test){
 const output = [];
 output.push(filter(array, test));
 output.push(reject(array,test));
 return output;
}
function partition ( array , test ) { const output = [ ] ; output . push ( filter ( array , test ) ) ; output . push ( reject ( array , test ) ) ; return output ; }
partition: Takes an array and a function that will call each element, index, and collection.
partition : Takes an array and a function that will call each element index and collection .