main
|
Last change
on this file since 24819a8 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 18 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
778 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | exports.__esModule = true;
|
|---|
| 4 | exports["default"] = void 0;
|
|---|
| 5 | var _ramda = require("ramda");
|
|---|
| 6 | /**
|
|---|
| 7 | * Predicate for determining if a provided value is an instance of a Map.
|
|---|
| 8 | *
|
|---|
| 9 | * @func isMap
|
|---|
| 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.isSet|isSet}}
|
|---|
| 17 | * @example
|
|---|
| 18 | *
|
|---|
| 19 | * RA.isMap(new Map()); //=> true
|
|---|
| 20 | * RA.isMap(new Map([[1, 2], [2, 1]])); //=> true
|
|---|
| 21 | * RA.isSet(new Set()); //=> false
|
|---|
| 22 | * RA.isSet(new Set([1,2]); //=> false
|
|---|
| 23 | * RA.isSet(new Object()); //=> false
|
|---|
| 24 | */
|
|---|
| 25 |
|
|---|
| 26 | var isMap = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Map')));
|
|---|
| 27 | var _default = isMap;
|
|---|
| 28 | exports["default"] = _default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.