Re:Just: A library of dependency-free JS utilities that do j...
by nilliams on Sunday July 17, 2016 @07:18PM
(#12112378)
Cross-browser usage? Map and filter aren't in IE8, which is still in wider use than a lot of people would like to pretend.
[ Parent
| on HN ]
Re:Just: A library of dependency-free JS utilities that do j...
by madeofpalk on Monday July 18, 2016 @02:28AM
(#12113505)
Well, what browsers you support is obviously going to depend strongly on your particular site and use case. I work on a consumer-facing site for a national broadcaster which sets very aggressive browser support (oldest IE we support is IE11) which works fine for us.
Regardless, any sort of environment where you can do `import extend from 'just-extend';` is going to (have a way) support map and filter.
Re:Just: A library of dependency-free JS utilities that do j...
by nilliams on Monday July 18, 2016 @01:18PM
(#12116494)
>> Regardless, any sort of environment where you can do `import extend from 'just-extend';` is going to (have a way) support map and filter.
That is not true for the now-fairly-common use case that browserify/webpack satisfy. I write code with ES6 module syntax and build with browserify (& babelify) to target the browser. But I still need to pull in modules like lodash.map/lodash.filter if I want to target IE8.
(I could use es5-shim but that makes for less portable code).