public class EcArray extends Object
| Constructor and Description |
|---|
EcArray() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
has(org.stjs.javascript.Array a,
Object o)
Returns true if the array has the value already.
|
static int |
indexOf(org.stjs.javascript.Array a,
Object o)
Returns the index of an object or value if the object or value exists in the array.
|
static boolean |
isArray(Object o)
Returns true if the result is an array.
|
static boolean |
isObject(Object o)
Returns true if the result is an object.
|
static void |
removeDuplicates(org.stjs.javascript.Array a)
Removes values IFF the values == one another.
|
static void |
setAdd(org.stjs.javascript.Array a,
Object o)
Adds a value if the array does not have the value already.
|
static void |
setRemove(org.stjs.javascript.Array a,
Object o)
Removes a value from the array.
|
public static boolean isArray(Object o)
{any} - o Object to test.public static void removeDuplicates(org.stjs.javascript.Array a)
a - {Array} Array to remove duplicates from.public static void setAdd(org.stjs.javascript.Array a,
Object o)
a - {Array} Array to add to.o - {Object} Object to add to the array if it isn't in there already.public static void setRemove(org.stjs.javascript.Array a,
Object o)
a - {Array} Array to add to.o - {Object} Object to add to the array if it isn't in there already.public static boolean has(org.stjs.javascript.Array a,
Object o)
a - {Array} Array.o - {Object} Object to sample for.public static boolean isObject(Object o)
{any} - o Object to test.public static int indexOf(org.stjs.javascript.Array a,
Object o)
{Array} - a Array to check over.{any} - o Object to check for.Copyright © 2021 Eduworks Corporation. All rights reserved.