1 | var _identity =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_identity");
|
4 |
|
5 | var chain =
|
6 | /*#__PURE__*/
|
7 | require("./chain");
|
8 | /**
|
9 | * Shorthand for `R.chain(R.identity)`, which removes one level of nesting from
|
10 | * any [Chain](https://github.com/fantasyland/fantasy-land#chain).
|
11 | *
|
12 | * @func
|
13 | * @memberOf R
|
14 | * @since v0.3.0
|
15 | * @category List
|
16 | * @sig Chain c => c (c a) -> c a
|
17 | * @param {*} list
|
18 | * @return {*}
|
19 | * @see R.flatten, R.chain
|
20 | * @example
|
21 | *
|
22 | * R.unnest([1, [2], [[3]]]); //=> [1, 2, [3]]
|
23 | * R.unnest([[1, 2], [3, 4], [5, 6]]); //=> [1, 2, 3, 4, 5, 6]
|
24 | */
|
25 |
|
26 |
|
27 | var unnest =
|
28 | /*#__PURE__*/
|
29 | chain(_identity);
|
30 | module.exports = unnest; |
\ | No newline at end of file |