trait ReadonlyArray[T] extends scala.scalajs.js.Object with StObject with NumberDictionary[T]
- Alphabetic
- By Inheritance
- ReadonlyArray
- NumberDictionary
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def concat(items: |[scala.scalajs.js.Array[T], T]*): scala.scalajs.js.Array[T]
Combines two or more arrays.
Combines two or more arrays.
- items
Additional items to add to the end of array1.
- def entries(): IterableIterator[Tuple2[Double, T]]
Returns an iterable of key, value pairs for every entry in the array
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def every(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.Boolean
- def every(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): scala.Boolean
Determines whether all the members of an array satisfy the specified test.
Determines whether all the members of an array satisfy the specified test.
- predicate
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
- def every_S_T[S](predicate: Function3[T, Double, scala.scalajs.js.Array[T], scala.Boolean], thisArg: Any): scala.Boolean
- Annotations
- @JSName("every")
- def every_S_T[S](predicate: Function3[T, Double, scala.scalajs.js.Array[T], scala.Boolean]): scala.Boolean
Determines whether all the members of an array satisfy the specified test.
Determines whether all the members of an array satisfy the specified test.
- predicate
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
- Annotations
- @JSName("every")
- def filter(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.scalajs.js.Array[T]
- def filter(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): scala.scalajs.js.Array[T]
Returns the elements of an array that meet the condition specified in a callback function.
Returns the elements of an array that meet the condition specified in a callback function.
- predicate
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- def filter_S_T[S](predicate: Function3[T, Double, scala.scalajs.js.Array[T], scala.Boolean], thisArg: Any): scala.scalajs.js.Array[S]
- Annotations
- @JSName("filter")
- def filter_S_T[S](predicate: Function3[T, Double, scala.scalajs.js.Array[T], scala.Boolean]): scala.scalajs.js.Array[S]
Returns the elements of an array that meet the condition specified in a callback function.
Returns the elements of an array that meet the condition specified in a callback function.
- predicate
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- Annotations
- @JSName("filter")
- def find[S](predicate: ThisFunction3[Unit, T, Double, scala.scalajs.js.Array[T], scala.Boolean], thisArg: Any): UndefOr[S]
- def find[S](predicate: ThisFunction3[Unit, T, Double, scala.scalajs.js.Array[T], scala.Boolean]): UndefOr[S]
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
- predicate
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
- def find(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): UndefOr[T]
- def find(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): UndefOr[T]
- def findIndex(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): Double
- def findIndex(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): Double
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
- predicate
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- def flat[A, D](depth: D): scala.scalajs.js.Array[FlatArray[A, D]]
- def flat[A, D](): scala.scalajs.js.Array[FlatArray[A, D]]
Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.
- def flatMap[U, This](callback: ThisFunction3[This, T, Double, scala.scalajs.js.Array[T], |[U, scala.scalajs.js.Array[U]]], thisArg: This): scala.scalajs.js.Array[U]
- def flatMap[U, This](callback: ThisFunction3[This, T, Double, scala.scalajs.js.Array[T], |[U, scala.scalajs.js.Array[U]]]): scala.scalajs.js.Array[U]
Calls a defined callback function on each element of an array.
Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.
- callback
A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.
- def forEach(callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], Unit], thisArg: Any): Unit
- def forEach(callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], Unit]): Unit
Performs the specified action for each element in an array.
Performs the specified action for each element in an array.
- callbackfn
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def includes(searchElement: T, fromIndex: Double): scala.Boolean
- def includes(searchElement: T): scala.Boolean
Determines whether an array includes a certain element, returning true or false as appropriate.
Determines whether an array includes a certain element, returning true or false as appropriate.
- searchElement
The element to search for.
- def indexOf(searchElement: T, fromIndex: Double): Double
- def indexOf(searchElement: T): Double
Returns the index of the first occurrence of a value in an array.
Returns the index of the first occurrence of a value in an array.
- searchElement
The value to locate in the array.
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- val iterator: Function0[IterableIterator[T]]
Iterator of values in the array.
Iterator of values in the array.
- Annotations
- @JSName(js.Symbol.iterator)
- def join(separator: java.lang.String): java.lang.String
- def join(): java.lang.String
Adds all the elements of an array separated by the specified separator string.
- def keys(): IterableIterator[Double]
Returns an iterable of keys in the array
- def lastIndexOf(searchElement: T, fromIndex: Double): Double
- def lastIndexOf(searchElement: T): Double
Returns the index of the last occurrence of a specified value in an array.
Returns the index of the last occurrence of a specified value in an array.
- searchElement
The value to locate in the array.
- val length: Double
Gets the length of the array.
Gets the length of the array. This is a number one higher than the highest element defined in an array.
- def map[U](callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], U], thisArg: Any): scala.scalajs.js.Array[U]
- def map[U](callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], U]): scala.scalajs.js.Array[U]
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
- callbackfn
A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def reduce(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T], initialValue: T): T
- def reduce(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T]): T
Calls the specified callback function for all the elements in an array.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- callbackfn
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- def reduceRight(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T], initialValue: T): T
- def reduceRight(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T]): T
Calls the specified callback function for all the elements in an array, in descending order.
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- callbackfn
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- def reduceRight_U_U[U](callbackfn: Function4[U, T, Double, scala.scalajs.js.Array[T], U], initialValue: U): U
Calls the specified callback function for all the elements in an array, in descending order.
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- callbackfn
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- initialValue
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- Annotations
- @JSName("reduceRight")
- def reduce_U_U[U](callbackfn: Function4[U, T, Double, scala.scalajs.js.Array[T], U], initialValue: U): U
Calls the specified callback function for all the elements in an array.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- callbackfn
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- initialValue
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- Annotations
- @JSName("reduce")
- def slice(start: Unit, end: Double): scala.scalajs.js.Array[T]
- def slice(start: Double, end: Double): scala.scalajs.js.Array[T]
- def slice(start: Double): scala.scalajs.js.Array[T]
- def slice(): scala.scalajs.js.Array[T]
Returns a section of an array.
- def some(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.Boolean
- def some(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): scala.Boolean
Determines whether the specified callback function returns true for any element of an array.
Determines whether the specified callback function returns true for any element of an array.
- predicate
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- def values(): IterableIterator[T]
Returns an iterable of values in the array
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated