UNPKG

619 BJavaScriptView Raw
1var _curry1 =
2/*#__PURE__*/
3require("./internal/_curry1");
4
5var _of =
6/*#__PURE__*/
7require("./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
28var of =
29/*#__PURE__*/
30_curry1(_of);
31
32module.exports = of;
\No newline at end of file