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:
538 bytes
|
Line | |
---|
1 | import { complement } from 'ramda';
|
---|
2 |
|
---|
3 | import isDate from './isDate';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Checks if value is complement of `Date` object.
|
---|
7 | *
|
---|
8 | * @func isNotDate
|
---|
9 | * @memberOf RA
|
---|
10 | * @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
|
---|
11 | * @category Type
|
---|
12 | * @sig * -> Boolean
|
---|
13 | * @param {*} val The value to test
|
---|
14 | * @return {boolean}
|
---|
15 | * @see {@link RA.isDate|isDate}
|
---|
16 | * @example
|
---|
17 | *
|
---|
18 | * RA.isNotDate(new Date()); //=> false
|
---|
19 | * RA.isNotDate('1997-07-16T19:20+01:00'); //=> true
|
---|
20 | */
|
---|
21 | const isNotDate = complement(isDate);
|
---|
22 |
|
---|
23 | export default isNotDate;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.