cass.rollup.processors.v2.graph.util.ArrayUtil Maven / Gradle / Ivy
package cass.rollup.processors.v2.graph.util;
import org.stjs.javascript.Array;
import org.stjs.javascript.Global;
public class ArrayUtil {
public static boolean arrayContains(Array a, Object o) {
for (int i=0;i=0;i--) {
if (a.$get(i) == o) return i;
}
return -1;
}
public static String arrayToString(Array a) {
if (a == null || a.$length() == 0) return "";
String ret = "";
for (int i=0;i