@JsType(isNative=true, name="Array", namespace="<global>") public abstract class Array extends Object
Constructor and Description |
---|
Array() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArray(Object object)
This method determines whether the passed value is an Array.
|
boolean |
isEmpty()
Returns
true if this array contains no elements. |
String |
join()
Creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas.
If the array has only one item, then that item will be returned without using the separator. |
String |
join(String separator)
Creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string.
If the array has only one item, then that item will be returned without using the separator. |
int |
length()
Returns the number of elements in this array.
|
public static boolean isArray(Object object)
object
- object to be checked.true
if the value is an Array; otherwise, false
.@JsProperty(name="length") public final int length()
@JsOverlay public final boolean isEmpty()
true
if this array contains no elements.true
if this array contains no elements@JsOverlay public final String join()
@JsOverlay public final String join(String separator)
separator
- separator string to apply in the join