init
This commit is contained in:
24
node_modules/ramda/es/unnest.js
generated
vendored
Normal file
24
node_modules/ramda/es/unnest.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import _identity from "./internal/_identity.js";
|
||||
import chain from "./chain.js";
|
||||
/**
|
||||
* 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);
|
||||
export default unnest;
|
Reference in New Issue
Block a user