source: node_modules/ramda-adjunct/src/isNotValidDate.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: 667 bytes
Line 
1import { complement } from 'ramda';
2
3import isValidDate from './isValidDate';
4
5/**
6 * Checks if value is complement of valid `Date` object.
7 *
8 * @func isNotValidDate
9 * @aliases isInvalidDate
10 * @memberOf RA
11 * @since {@link https://char0n.github.io/ramda-adjunct/1.8.0|v1.8.0}
12 * @category Type
13 * @sig * -> Boolean
14 * @param {*} val The value to test
15 * @return {boolean}
16 * @see {@link RA.isValidDate|isValidDate}, {@link RA.isDate|isDate}, {@link RA.isNotDate|isNotDate}
17 * @example
18 *
19 * RA.isNotValidDate(new Date()); //=> false
20 * RA.isNotValidDate(new Date('a')); //=> true
21 */
22const isNotValidDate = complement(isValidDate);
23
24export default isNotValidDate;
Note: See TracBrowser for help on using the repository browser.