by nathancahill · 10y ago · 0 comments
Minified (1.49kb) and gzipped (677b).
Whether lodash functions should be used instead of naive functions is up for debate. My opinion is if the lodash functions are 5x the size of the entire library, it's probably best to not include it, or to include it as a build option (if the user's project already includes lodash for example).
Assuming the current setup of babel+webpack the difference between your naive version is just ~0.5 kB.