News for hackers. Stuff that matters.
Re:But – A way to pass along a callback with just a single a... by willyg302 on Monday December 29, 2014 @03:35PM (#8811634)
Additionally, this will log all the passed arguments (value, index, and array being traversed), which typically isn't what you want:

    [1, 2, 3].forEach(console.log.bind(console));
    > 1 0 [1, 2, 3]
    > 2 1 [1, 2, 3]
    > 3 2 [1, 2, 3]

There are no comments on this comment yet.