mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Cleanup _.pull.
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -3811,13 +3811,13 @@
|
|||||||
*/
|
*/
|
||||||
function pull() {
|
function pull() {
|
||||||
var array = arguments[0],
|
var array = arguments[0],
|
||||||
argsIndex = 0,
|
index = 0,
|
||||||
argsLength = arguments.length,
|
indexOf = getIndexOf(),
|
||||||
indexOf = getIndexOf();
|
length = arguments.length;
|
||||||
|
|
||||||
while (++argsIndex < argsLength) {
|
while (++index < length) {
|
||||||
var fromIndex = 0,
|
var fromIndex = 0,
|
||||||
value = arguments[argsIndex];
|
value = arguments[index];
|
||||||
|
|
||||||
while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {
|
while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {
|
||||||
splice.call(array, fromIndex, 1);
|
splice.call(array, fromIndex, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user