Remove baseIteratee and castFunction.

This commit is contained in:
John-David Dalton
2017-01-09 17:17:03 -08:00
parent efcf51c7bf
commit 65654f8f9e
96 changed files with 140 additions and 537 deletions

View File

@@ -1,4 +1,3 @@
import baseIteratee from './_baseIteratee.js';
import basePullAt from './_basePullAt.js';
/**
@@ -14,7 +13,7 @@ import basePullAt from './_basePullAt.js';
* @since 2.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {Function} predicate The function invoked per iteration.
* @returns {Array} Returns the new array of removed elements.
* @example
*
@@ -38,7 +37,6 @@ function remove(array, predicate) {
const indexes = [];
const length = array.length;
predicate = baseIteratee(predicate, 3);
while (++index < length) {
const value = array[index];
if (predicate(value, index, array)) {