source: node_modules/ramda-adjunct/src/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: 605 bytes
Line 
1import { identical, curryN } from 'ramda';
2
3/**
4 * Checks if value is a negative zero (-0).
5 *
6 * @func isNegativeZero
7 * @memberof RA
8 * @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
9 * @category Type
10 * @sig * -> Boolean
11 * @param {*} val The value to test
12 * @return {boolean}
13 * @see @see {@link RA.isPositiveZero|isPositiveZero}
14 * @example
15 *
16 * RA.isNegativeZero(-0); //=> true
17 * RA.isNegativeZero(+0); //=> false
18 * RA.isNegativeZero(0); //=> false
19 * RA.isNegativeZero(null); //=> false
20 */
21const isNegativeZero = curryN(1, identical(-0));
22
23export default isNegativeZero;
Note: See TracBrowser for help on using the repository browser.