Javascript Array methods in Max Msp

Bob Bob's icon

I'd like to make use of standard array methods in Javascript. For instance, those in this link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array

It seems Max doesn't recognize these. What can I do so that I can use these methods in javascript?

geofholbrook's icon

It does recognize most of those, I think. Max Javascript supports the ES5 standard. I know some of the array methods are newer than es5, like `includes` and `flatMap`, probably others. Which ones were you having trouble with?