123456789101112131415161718192021222324 |
- 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;
|