Underscore v1.13.8 is out, with a security fix in _.isEqual and _.flatten. Please upgrade to underscore@latest or underscore@stable.
Underscore v1.13.8 is out, with a security fix in _.isEqual and _.flatten. Please upgrade to underscore@latest or underscore@stable.
@randomwizard Or use #UnderscoreJS, where most functions work the same regardless of whether you iterate over an array or an object.
(Map and Set nog supported yet, but planned for version 2.)
Just released #UnderscoreJS version 1.13.7. Thanks to @elkcityhazard for contributing #darkmode to the home page.
@electricdragon I think it stems from 2 obsessions: wanting every library to be dependency-free (which is insane) and wanting to treeshake everything to the bone (which is defensible but requires shredding files because tools cannot reason about side effects). I confess I modularized #UnderscoreJS for the latter reason, though I took care to keep it readable.
Another reason why business logic is obscure, is that nobody understands MVC anymore. The component frameworks are to blame for that.
@noim @ph1 They are a bit niche.
- Generating just one value: async/await is easier, as mentioned.
- Generating a series: more likely to use events or streams or to just store everything in an array eagerly.
Generators do allow lazy patterns, where e.g. you transform and filter a series partially with takeWhile. Lodash attempted to do such a thing before generators existed with "shortcut fusion", which was bloaty and nonscalable. #UnderscoreJS 2.0 will support generators as a collection type.