Comment by buckbova
11 years ago
Nearly everyone has had it drilled into them the "Don't reinvent the wheel." nonsense for better or worse.
I use lodash in almost every javascript project I start, big or small because it makes my life easier.
I'd rather use the lodash isArray than roll my own.
Do you support IE 8? If not, why not use the one provided by the language, Array.isArray()?
The latest version of lodash (4.0.0) doesn't support IE 8, so you would need to polyfill isArray() yourself or use a pre-modern lodash version.
Yeah I agree that polyfilling makes more sense than depending on lodash just to get isArray(). I wonder if we'll start seeing the sorts of "you don't need..." rants about lodash that we've seen about jquery for some time now?
Yeah but you're loading an entire library to use one function?
Tree shaking.