Y
Hacker News
new
|
ask
|
show
|
jobs
by
rafram
396 days ago
Right. For the purposes of standard library functions that operate on array-like objects,
{ length: 1, 0: "item" }
is an array.