Can I use the padStart() method?


    Sep 10 2023 | 6:35 pm
    I am trying to reuse some javascript code I have. it basically takes a sysex current program dump from a KORG Monologue and gets the params to fill a UI. I have it working fine in a NEXT/React app but when I try to use it in a Max for Live Device, I am getting weird errors. the biggest issue is that certain prototype methods like padStart() just don't work. I get `padStart is not a function.`

    • tyler mazaika's icon
      tyler mazaika
      Sep 10 2023 | 9:38 pm
      JS in Max is ES5 (ECMAScript 2009), so it lacks lots of modern niceties.