action-debian-package/node_modules/ramda/es/unnest.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

24 lines
596 B
JavaScript

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;