JSFiddle - React, Tailwind, and code Playground
by podgorniy
JavaScript
function getType (obj) {
return Object.prototype.toString.call(obj);
}
console.log(getType([]));
console.log(getType([]) === '[object Array]');
by podgorniy
function getType (obj) {
return Object.prototype.toString.call(obj);
}
console.log(getType([]));
console.log(getType([]) === '[object Array]');