v21’s avatarv21’s Twitter Archive—№ 55,382

  1. i love underscore, but what i love even more is removing underscore because all we're using it for is map() or filter() and those are just methods on arrays now
    1. …in reply to @v21
      (what i hate is this thing i keep seeing in Typescript where _.sample() is being inferred to return a type of {} and I have to manually cast to fix it - after refactoring so it's not in a chain)
      1. …in reply to @v21
        for people who follow me who know C#, but not javascript, underscore is like LINQ. and if you do Unity coding and aren't using LINQ, it's the best. it's like underscore but for C#. i just love functional-style transformations on objects and arrays.
        1. …in reply to @v21
          and if you do python, they're both like list comprehensions, but less funky and more chainable