forked from waja/action-debian-package
update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
33
node_modules/ramda/src/init.js
generated
vendored
Normal file
33
node_modules/ramda/src/init.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
var slice =
|
||||
/*#__PURE__*/
|
||||
require("./slice");
|
||||
/**
|
||||
* Returns all but the last element of the given list or string.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.9.0
|
||||
* @category List
|
||||
* @sig [a] -> [a]
|
||||
* @sig String -> String
|
||||
* @param {*} list
|
||||
* @return {*}
|
||||
* @see R.last, R.head, R.tail
|
||||
* @example
|
||||
*
|
||||
* R.init([1, 2, 3]); //=> [1, 2]
|
||||
* R.init([1, 2]); //=> [1]
|
||||
* R.init([1]); //=> []
|
||||
* R.init([]); //=> []
|
||||
*
|
||||
* R.init('abc'); //=> 'ab'
|
||||
* R.init('ab'); //=> 'a'
|
||||
* R.init('a'); //=> ''
|
||||
* R.init(''); //=> ''
|
||||
*/
|
||||
|
||||
|
||||
var init =
|
||||
/*#__PURE__*/
|
||||
slice(0, -1);
|
||||
module.exports = init;
|
Loading…
Add table
Add a link
Reference in a new issue