Packages

t

fs2.internal.jsdeps.std

ReadonlyArray

trait ReadonlyArray[T] extends scala.scalajs.js.Object with StObject with NumberDictionary[T]

Annotations
@JSType() @native()
Source
ReadonlyArray.scala
Linear Supertypes
NumberDictionary[T], StObject, scala.scalajs.js.Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadonlyArray
  2. NumberDictionary
  3. StObject
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. 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.

  7. def entries(): IterableIterator[Tuple2[Double, T]]

    Returns an iterable of key, value pairs for every entry in the array

  8. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  10. def every(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.Boolean
  11. 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.

  12. def every_S_T[S](predicate: Function3[T, Double, scala.scalajs.js.Array[T], scala.Boolean], thisArg: Any): scala.Boolean
    Annotations
    @JSName("every")
  13. 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")
  14. def filter(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.scalajs.js.Array[T]
  15. 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.

  16. 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")
  17. 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")
  18. def find[S](predicate: ThisFunction3[Unit, T, Double, scala.scalajs.js.Array[T], scala.Boolean], thisArg: Any): UndefOr[S]
  19. 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.

  20. def find(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): UndefOr[T]
  21. def find(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any]): UndefOr[T]
  22. def findIndex(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): Double
  23. 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.

  24. def flat[A, D](depth: D): scala.scalajs.js.Array[FlatArray[A, D]]
  25. 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.

  26. 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]
  27. 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.

  28. def forEach(callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], Unit], thisArg: Any): Unit
  29. 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.

  30. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  31. def hasOwnProperty(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  33. def includes(searchElement: T, fromIndex: Double): scala.Boolean
  34. 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.

  35. def indexOf(searchElement: T, fromIndex: Double): Double
  36. 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.

  37. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  38. def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
    Definition Classes
    Object
  39. val iterator: Function0[IterableIterator[T]]

    Iterator of values in the array.

    Iterator of values in the array.

    Annotations
    @JSName(js.Symbol.iterator)
  40. def join(separator: java.lang.String): java.lang.String
  41. def join(): java.lang.String

    Adds all the elements of an array separated by the specified separator string.

  42. def keys(): IterableIterator[Double]

    Returns an iterable of keys in the array

  43. def lastIndexOf(searchElement: T, fromIndex: Double): Double
  44. 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.

  45. 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.

  46. def map[U](callbackfn: Function3[T, Double, scala.scalajs.js.Array[T], U], thisArg: Any): scala.scalajs.js.Array[U]
  47. 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.

  48. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  51. def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  52. def reduce(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T], initialValue: T): T
  53. 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.

  54. def reduceRight(callbackfn: Function4[T, T, Double, scala.scalajs.js.Array[T], T], initialValue: T): T
  55. 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.

  56. 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")
  57. 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")
  58. def slice(start: Unit, end: Double): scala.scalajs.js.Array[T]
  59. def slice(start: Double, end: Double): scala.scalajs.js.Array[T]
  60. def slice(start: Double): scala.scalajs.js.Array[T]
  61. def slice(): scala.scalajs.js.Array[T]

    Returns a section of an array.

  62. def some(predicate: Function3[T, Double, scala.scalajs.js.Array[T], Any], thisArg: Any): scala.Boolean
  63. 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.

  64. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  65. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  66. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  67. def valueOf(): Any
    Definition Classes
    Object
  68. def values(): IterableIterator[T]

    Returns an iterable of values in the array

  69. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  70. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  71. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from NumberDictionary[T]

Inherited from StObject

Inherited from scala.scalajs.js.Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped