mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-14 06:54:10 +02:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 changed files with 1886006 additions and 0 deletions
22
node_modules/lodash/initial.js
generated
vendored
Normal file
22
node_modules/lodash/initial.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
var baseSlice = require('./_baseSlice');
|
||||
|
||||
/**
|
||||
* Gets all but the last element of `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to query.
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
* @example
|
||||
*
|
||||
* _.initial([1, 2, 3]);
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function initial(array) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
return length ? baseSlice(array, 0, -1) : [];
|
||||
}
|
||||
|
||||
module.exports = initial;
|
Loading…
Add table
Add a link
Reference in a new issue