source: node_modules/ramda/src/unnest.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 634 bytes
Line 
1var _identity =
2/*#__PURE__*/
3require("./internal/_identity.js");
4
5var chain =
6/*#__PURE__*/
7require("./chain.js");
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
27var unnest =
28/*#__PURE__*/
29chain(_identity);
30module.exports = unnest;
Note: See TracBrowser for help on using the repository browser.