source: node_modules/ramda-adjunct/src/isPositiveZero.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: 599 bytes
Line 
1import { identical, curryN } from 'ramda';
2
3/**
4 * Checks if value is a positive zero (+0).
5 *
6 * @func isPositiveZero
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 {@link RA.isNegativeZero|isNegativeZero}
14 * @example
15 *
16 * RA.isPositiveZero(+0); //=> true
17 * RA.isPositiveZero(0); //=> true
18 * RA.isPositiveZero(-0); //=> false
19 * RA.isPositiveZero(null); //=> false
20 */
21const isPositiveZero = curryN(1, identical(+0));
22
23export default isPositiveZero;
Note: See TracBrowser for help on using the repository browser.