main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
581 bytes
|
Line | |
---|
1 | import { equals } from 'ramda';
|
---|
2 |
|
---|
3 | import stubUndefined from './stubUndefined';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Checks if input value is `undefined`.
|
---|
7 | *
|
---|
8 | * @func isUndefined
|
---|
9 | * @memberOf RA
|
---|
10 | * @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
|
---|
11 | * @category Type
|
---|
12 | * @sig * -> Boolean
|
---|
13 | * @param {*} val The value to test
|
---|
14 | * @return {boolean}
|
---|
15 | * @see {@link RA.isNotUndefined|isNotUndefined}
|
---|
16 | * @example
|
---|
17 | *
|
---|
18 | * RA.isUndefined(1); //=> false
|
---|
19 | * RA.isUndefined(undefined); //=> true
|
---|
20 | * RA.isUndefined(null); //=> false
|
---|
21 | */
|
---|
22 | const isUndefined = equals(stubUndefined());
|
---|
23 |
|
---|
24 | export default isUndefined;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.