I seem to have problems running JavaScript functions when not using the "Run JavaScript function on web page" functionality. Array functions such as filter and map, for example, do not seem to work when running custom JavaScript on PAD but works fine when running in a browser.
An example could be filtering an array of falsy values, which returns a compiler error:
Executing the same script on a browser works fine. Am I missing something?

Report
All responses (
Answers (