javascript detect if object is date
var myDate=new Date();
if(myDate instanceof Date){
//im a hot Date
}
javascript detect if object is date
var myDate=new Date();
if(myDate instanceof Date){
//im a hot Date
}
javascript detect if object is date
//checks if is object, null val returns false
function isObject(val) {
if (val === null) { return false;}
return ( (typeof val === 'function') || (typeof val === 'object') );
}
var person = {"name":"Boby Snark"};
isObject(person);//true
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us