UNPKG

crocks

Version:

A collection of well known Algebraic Datatypes for your utter enjoyment.

12 lines (8 loc) 286 B
/** @license ISC License (c) copyright 2018 original and current authors */ /** @author Dale Francis (dalefrancis88) */ // isDate : a -> Boolean function isDate(x) { return Object.prototype.toString.apply(x) === '[object Date]' && !isNaN(x.valueOf()) } module.exports = isDate