Wire arrays into the prototype chain (Array.prototype → Object.prototype), add the Array global with isArray(), and implement callback-based methods (map, forEach, filter, find, findIndex, some, every, reduce, reduceRight, sort) plus simple methods (includes, lastIndexOf, reverse, shift, unshift). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
61 B
Plaintext
7 lines
61 B
Plaintext
10
|
|
16
|
|
42
|
|
0
|
|
3,2,1
|
|
Reduce of empty array with no initial value
|