News for hackers. Stuff that matters.
Re:JavaScript Pattern Matching Proposal by dkarbayev on Wednesday April 25, 2018 @06:17PM (#16926808)
Wow, importing the whole lodash to use just one function? There’s es6 way of getting an array with a range of numbers:

    [...Array(100).keys()].map(v=>v+1)
A little bit longer but no dependencies.
Re:JavaScript Pattern Matching Proposal by fangaorne on Friday April 27, 2018 @04:39AM (#16939294)
Although this method is pretty, I see 4 loops in this small line. a better way would be to only import the range method from lodash like so :

    import _range from "lodash/range";
Re:JavaScript Pattern Matching Proposal by mpfundstein on Thursday April 26, 2018 @01:44AM (#16929117)
Pretty cool trick mate. Didn’t know