2011-05-21から1日間の記事一覧
function istype(o) { return Object.prototype.toString.call(o); } console.log(istype(1));//[object Number] console.log(typeof(1));//number I do not know difference about above thing! which is better?
function istype(o) { return Object.prototype.toString.call(o); } console.log(istype(1));//[object Number] console.log(typeof(1));//number I do not know difference about above thing! which is better?