mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 02:16:39 +02:00
callback for Array.prototype.{reduce,reduceRight}
Arrow functions always retain the |this| binding.
Running this code in Node:
[1, 2].reduce(() => { "use strict"; console.log(this === undefined) }
Output: false