forked from waja/action-debian-package
30 lines
628 B
JavaScript
30 lines
628 B
JavaScript
|
var _identity =
|
||
|
/*#__PURE__*/
|
||
|
require("./internal/_identity");
|
||
|
|
||
|
var chain =
|
||
|
/*#__PURE__*/
|
||
|
require("./chain");
|
||
|
/**
|
||
|
* 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);
|
||
|
module.exports = unnest;
|