source: node_modules/ramda-adjunct/lib/isSet.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 727 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Predicate for determining if a provided value is an instance of a Set.
8 *
9 * @func isSet
10 * @memberOf RA
11 * @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
12 * @category Type
13 * @sig * -> Boolean
14 * @param {*} val The value to test
15 * @return {boolean}
16 * @see {@link RA.isMap|isMap}}
17 * @example
18 *
19 * RA.isSet(new Map()); //=> false
20 * RA.isSet(new Set()); //=> true
21 * RA.isSet(new Set([1,2]); //=> true
22 * RA.isSet(new Object()); //=> false
23 */
24
25var isSet = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Set')));
26var _default = isSet;
27exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.