Post A4MjvgjVqZ2MW2RZB2 by stchris@fosstodon.org
 (DIR) More posts by stchris@fosstodon.org
 (DIR) Post #A4Mj4JMjzlfihBL9mK by einziggurat@shitposter.club
       2021-02-17T13:00:30.187708Z
       
       0 likes, 0 repeats
       
       asking into the void, does JS have anything anywhere near as powerful as python's list comprehensions tucked away into it's array type?
       
 (DIR) Post #A4MjvgjVqZ2MW2RZB2 by stchris@fosstodon.org
       2021-02-17T13:04:26Z
       
       1 likes, 0 repeats
       
       @einziggurat ramdajs.com has similar things https://gist.github.com/artisin/6fd1e9305f6a1ce087df#list-comprehension
       
 (DIR) Post #A4Mjx2YmBGMOV44B6W by einziggurat@shitposter.club
       2021-02-17T13:10:23.879797Z
       
       0 likes, 0 repeats
       
       @stchris interesting, cheers.
       
 (DIR) Post #A4O8kLUt9XtVTrFeWe by grumbulon@shitposter.club
       2021-02-17T13:23:18.561773Z
       
       1 likes, 0 repeats
       
       @einziggurat You can do something like Array.from({length:11}, (_,i) => i + 1);[1,2,3,4,5,6,7,8,9,10,11]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from