mirror of
https://github.com/actions/setup-python.git
synced 2025-07-19 08:58:20 +02:00
Clean up node_modules
This commit is contained in:
parent
b581dd4017
commit
145e800d1f
7184 changed files with 11271 additions and 1877650 deletions
26
node_modules/lodash/_baseWhile.js
generated
vendored
26
node_modules/lodash/_baseWhile.js
generated
vendored
|
@ -1,26 +0,0 @@
|
|||
var baseSlice = require('./_baseSlice');
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.dropWhile` and `_.takeWhile`
|
||||
* without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to query.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @param {boolean} [isDrop] Specify dropping elements instead of taking them.
|
||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
*/
|
||||
function baseWhile(array, predicate, isDrop, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? length : -1;
|
||||
|
||||
while ((fromRight ? index-- : ++index < length) &&
|
||||
predicate(array[index], index, array)) {}
|
||||
|
||||
return isDrop
|
||||
? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
|
||||
: baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
|
||||
}
|
||||
|
||||
module.exports = baseWhile;
|
Loading…
Add table
Add a link
Reference in a new issue