source: node_modules/ramda/es/unnest.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 596 bytes
RevLine 
[d24f17c]1import _identity from "./internal/_identity.js";
2import chain from "./chain.js";
3/**
4 * Shorthand for `R.chain(R.identity)`, which removes one level of nesting from
5 * any [Chain](https://github.com/fantasyland/fantasy-land#chain).
6 *
7 * @func
8 * @memberOf R
9 * @since v0.3.0
10 * @category List
11 * @sig Chain c => c (c a) -> c a
12 * @param {*} list
13 * @return {*}
14 * @see R.flatten, R.chain
15 * @example
16 *
17 * R.unnest([1, [2], [[3]]]); //=> [1, 2, [3]]
18 * R.unnest([[1, 2], [3, 4], [5, 6]]); //=> [1, 2, 3, 4, 5, 6]
19 */
20
21var unnest =
22/*#__PURE__*/
23chain(_identity);
24export default unnest;
Note: See TracBrowser for help on using the repository browser.