News for hackers. Stuff that matters.
Re:30 seconds of code: Curated list of useful JavaScript sni... by simlevesque on Monday December 11, 2017 @03:01PM (#15899897)
I think one is more efficient memory wise but I'm not sure which one.
Re:30 seconds of code: Curated list of useful JavaScript sni... by mmanfrin on Monday December 11, 2017 @03:14PM (#15900022)
The non-fat-arrow one, as it does not need to carry around the context of `this` with it.
Re:30 seconds of code: Curated list of useful JavaScript sni... by hoosieree on Monday December 11, 2017 @04:25PM (#15900597)
Do you have a reference for this? I always thought arrows were lighter weight because their `this` is static rather than dynamic.