If you can go `[Promise a]` to `Promise [a]` you can go `[Promise [a]]` to `Promise [[a]]` which is good enough since you can go from `[[a]]` to `[a]`
-
-
Have you seen how an array’s length property is defined? https://www.ecma-international.org/ecma-262/5.1/#sec-15.4 … tl;dr it looks at properties on the object, determines which are array indexes, adds one to the largest, and bam, length.
-
> object has a length property whose value is always a nonnegative integer I'm pretty sure this is for a different language
- 6 more replies
New conversation -
-
-
> new Array(5).map(() => 1) [ <5 empty items> ]
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.