source: node_modules/ramda-adjunct/es/isNotValidDate.js

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