Adds one or more elements to the end of an array and returns the new length of the array.
2829303132333435363738
public int act() { NativeArray<String> array = new NativeArray(); assert array.length() == 0; array.push("1"); assert array.length() == 1; return array.length(); } });
4445464748495051525354
public int act() { NativeArray<String> array = new NativeArray(); assert array.length() == 0; array.push("1"); assert array.length() == 1; int index = array.indexOf("1"); assert index == 0;
6364656667686970717273