News for hackers. Stuff that matters.
Re:But – A way to pass along a callback with just a single a... by dyscrete on Monday December 29, 2014 @03:32PM (#8811623)
Well it's not just about `this` but the arguments to pass to console rather. In this case:

    n.forEach(console.log.bind(console));
forEach is passing console all of its callback arguments, resulting in logging of keys, values, and array.

EDIT: Forgot array

Re:But – A way to pass along a callback with just a single a... by nilved on Monday December 29, 2014 @03:55PM (#8811716)
Ah, I understand. It reminds me of how the `cut` function could be used in Scheme.