update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
30
node_modules/ramda/src/unnest.js
generated
vendored
Normal file
30
node_modules/ramda/src/unnest.js
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
var _identity =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_identity");
|
||||
|
||||
var chain =
|
||||
/*#__PURE__*/
|
||||
require("./chain");
|
||||
/**
|
||||
* Shorthand for `R.chain(R.identity)`, which removes one level of nesting from
|
||||
* any [Chain](https://github.com/fantasyland/fantasy-land#chain).
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.3.0
|
||||
* @category List
|
||||
* @sig Chain c => c (c a) -> c a
|
||||
* @param {*} list
|
||||
* @return {*}
|
||||
* @see R.flatten, R.chain
|
||||
* @example
|
||||
*
|
||||
* R.unnest([1, [2], [[3]]]); //=> [1, 2, [3]]
|
||||
* R.unnest([[1, 2], [3, 4], [5, 6]]); //=> [1, 2, 3, 4, 5, 6]
|
||||
*/
|
||||
|
||||
|
||||
var unnest =
|
||||
/*#__PURE__*/
|
||||
chain(_identity);
|
||||
module.exports = unnest;
|
Loading…
Add table
Add a link
Reference in a new issue