Can I use the padStart() method?

tekfunkdub's icon

tekfunkdub

9月 10 2023 | 6:35 午後

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

9月 10 2023 | 9:38 午後

JS in Max is ES5 (ECMAScript 2009), so it lacks lots of modern niceties.