source: node_modules/ramda-adjunct/lib/isNegativeZero.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 714 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Checks if value is a negative zero (-0).
8 *
9 * @func isNegativeZero
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 @see {@link RA.isPositiveZero|isPositiveZero}
17 * @example
18 *
19 * RA.isNegativeZero(-0); //=> true
20 * RA.isNegativeZero(+0); //=> false
21 * RA.isNegativeZero(0); //=> false
22 * RA.isNegativeZero(null); //=> false
23 */
24var isNegativeZero = (0, _ramda.curryN)(1, (0, _ramda.identical)(-0));
25var _default = isNegativeZero;
26exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.