MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / basePullAt

Function basePullAt

lib/web/jshint.js:4040–4050  ·  view source on GitHub ↗

* The base implementation of `_.pullAt` without support for individual * index arguments and capturing the removed elements. * * @private * @param {Array} array The array to modify. * @param {number[]} indexes The indexes of elements to remove. * @returns {Array} Return

(array, indexes)

Source from the content-addressed store, hash-verified

4038 * @returns {Array} Returns `array`.
4039 */
4040 function basePullAt(array, indexes) {
4041 var length = indexes.length;
4042 while (length--) {
4043 var index = parseFloat(indexes[length]);
4044 if (index != previous && isIndex(index)) {
4045 var previous = index;
4046 splice.call(array, index, 1);
4047 }
4048 }
4049 return array;
4050 }
4051
4052 /**
4053 * The base implementation of `_.random` without support for argument juggling

Callers 2

runInContextFunction · 0.85
removeFunction · 0.85

Calls 2

isIndexFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected