Array#{flat,flatMap} are available in Chrome, Firefox, Safari, and Node.js!
https://v8.dev/features/array-flat-flatmap …pic.twitter.com/OMPZFAwm5O
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
To clarify, the RangeError is expected! The @v8js bug was the segfault.
I don’t get RangeError in any browser thankfully, otherwise you’d need to always check the depth of the array before flattening?
In which browser are you not getting a RangeError for @rthangam123’s example?
oh ok. Since it is an empty array should it throw Range Error or return empty array ?
It should throw a RangeError, since it recurses infinitely.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.