4 ms·
https://javascriptweblog.wordpress.com/2011/08/08/fixing-the-javascript-typeof-operator https://javascriptweblog.wordpress.com/2011/08/08/fixing-the... tl;dr:
by nsonha 5y ago
https://javascriptweblog.wordpress.com/2011/08/08/fixing-the-javascript-typeof-operator https://javascriptweblog.wordpress.com/2011/08/08/fixing-the...
tl;dr: Object.prototype.toString.call, you most likely to also want to exclude null, RegExp, Function, Date, Number, Boolean & String (not string)