ringojs
ringojs copied to clipboard
Add a flat() method for Arrays
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
Or consider contributing an implementation to Rhino itself: https://github.com/mozilla/rhino/issues/948, https://github.com/mozilla/rhino/issues/949