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