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:
479 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { equals } from 'ramda';
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Checks if input value is `null`.
|
---|
| 5 | *
|
---|
| 6 | * @func isNull
|
---|
| 7 | * @memberOf RA
|
---|
| 8 | * @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
|
---|
| 9 | * @category Type
|
---|
| 10 | * @sig * -> Boolean
|
---|
| 11 | * @param {*} val The value to test
|
---|
| 12 | * @return {boolean}
|
---|
| 13 | * @see {@link RA.isNotNull|isNotNull}
|
---|
| 14 | * @example
|
---|
| 15 | *
|
---|
| 16 | * RA.isNull(1); //=> false
|
---|
| 17 | * RA.isNull(undefined); //=> false
|
---|
| 18 | * RA.isNull(null); //=> true
|
---|
| 19 | */
|
---|
| 20 | const isNull = equals(null);
|
---|
| 21 |
|
---|
| 22 | export default isNull;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.