ringojs icon indicating copy to clipboard operation
ringojs copied to clipboard

Add a flat() method for Arrays

Open botic opened this issue 2 years ago • 1 comments

Since Rhino is missing [].flat(), we should provide a helper in ringo/utils/arrays. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat

botic avatar Dec 09 '22 14:12 botic

Or consider contributing an implementation to Rhino itself: https://github.com/mozilla/rhino/issues/948, https://github.com/mozilla/rhino/issues/949

p-bakker avatar Feb 09 '23 07:02 p-bakker