const OtoString = Object . prototype . toString ; export function isDate ( val ) { return OtoString . call ( val ) === '[object Date]' ; } export function isObject ( val ) { return val !== null && typeof val === 'object' ; }