3 ms·
Nice collection! I looked instantly at the code and it is not bad at all, maybe except for this piece: function is_array(x) { return Object.
by pestaa 15y ago
Nice collection!
I looked instantly at the code and it is not bad at all, maybe except for this piece:
function is_array(x) {
return Object.prototype.toString.call(x) === '[object Array]';
}
What's wrong with Array.isArray()?
- victorNicollet 15y agoYou're right. I guess I am used to making things work for IE8...