1 | var _curry1 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry1");
|
4 |
|
5 | var _of =
|
6 | /*#__PURE__*/
|
7 | require("./internal/_of");
|
8 | /**
|
9 | * Returns a singleton array containing the value provided.
|
10 | *
|
11 | * Note this `of` is different from the ES6 `of`; See
|
12 | * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of
|
13 | *
|
14 | * @func
|
15 | * @memberOf R
|
16 | * @since v0.3.0
|
17 | * @category Function
|
18 | * @sig a -> [a]
|
19 | * @param {*} x any value
|
20 | * @return {Array} An array wrapping `x`.
|
21 | * @example
|
22 | *
|
23 | * R.of(null); //=> [null]
|
24 | * R.of([42]); //=> [[42]]
|
25 | */
|
26 |
|
27 |
|
28 | var of =
|
29 | /*#__PURE__*/
|
30 | _curry1(_of);
|
31 |
|
32 | module.exports = of; |
\ | No newline at end of file |