mirror of
https://github.com/actions/setup-python.git
synced 2025-07-19 08:18:21 +02:00
Clean up node_modules
This commit is contained in:
parent
b581dd4017
commit
145e800d1f
7184 changed files with 11271 additions and 1877650 deletions
32
node_modules/lodash/_createBaseEach.js
generated
vendored
32
node_modules/lodash/_createBaseEach.js
generated
vendored
|
@ -1,32 +0,0 @@
|
|||
var isArrayLike = require('./isArrayLike');
|
||||
|
||||
/**
|
||||
* Creates a `baseEach` or `baseEachRight` function.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} eachFunc The function to iterate over a collection.
|
||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||
* @returns {Function} Returns the new base function.
|
||||
*/
|
||||
function createBaseEach(eachFunc, fromRight) {
|
||||
return function(collection, iteratee) {
|
||||
if (collection == null) {
|
||||
return collection;
|
||||
}
|
||||
if (!isArrayLike(collection)) {
|
||||
return eachFunc(collection, iteratee);
|
||||
}
|
||||
var length = collection.length,
|
||||
index = fromRight ? length : -1,
|
||||
iterable = Object(collection);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
if (iteratee(iterable[index], index, iterable) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return collection;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = createBaseEach;
|
Loading…
Add table
Add a link
Reference in a new issue