Page Summary
-
Sandboxed JavaScript environments support a specific set of methods for built-in types like Array, String, Object, Boolean, and Number, in addition to the global APIs.
-
Supported Array methods include common operations such as concat, every, filter, forEach, indexOf, join, map, pop, push, reduce, reverse, slice, sort, splice, and more.
-
For Strings, methods like charAt, concat, indexOf, lastIndexOf, match, replace, slice, split, substring, toLowerCase, toUpperCase, and trim are available.
-
Object, Boolean, and Number types primarily support the toString method within this sandboxed environment.
-
Developers can refer to the provided links for detailed documentation and usage examples of each supported method from Mozilla Developer Network.
In addition to the globals documented in API , Sandboxed JavaScript supports the following methods on the built-in types.
Array
- concat
- every
- filter
- forEach
- indexOf
- join
- lastIndexOf
- map
- pop
- push
- reduce
- reduceRight
- reverse
- shift
- slice
- some
- sort
- splice
- toString
- unshift
String
- charAt
- concat
- indexOf
- lastIndexOf
- match
- replace
- search
- slice
- split
- substring
- toLowerCase
- toLocaleLowerCase
- toString
- toUpperCase
- toLocaleUpperCase
- trim

