Js.ArrayBindings to the functions in Array.prototype
JavaScript Array API
type 'a array_like = 'a Js.array_likeval from : 'a array_like -> 'a arrayval fromMap : 'a array_like -> f:('a -> 'b) -> 'b arrayMutating functions
val pop : 'a t -> 'a optionhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
val push : value:'a -> 'a t -> intval pushMany : values:'a array -> 'a t -> intval shift : 'a t -> 'a optionval unshift : value:'a -> 'a t -> intval unshiftMany : values:'a array -> 'a t -> intval includes : value:'a -> 'a t -> boolES2015
val join : ?sep:string -> 'a t -> stringAccessor functions
val indexOf : value:'a -> ?start:int -> 'a t -> intval lastIndexOf : value:'a -> 'a t -> intval lastIndexOfFrom : value:'a -> start:int -> 'a t -> intval toString : 'a t -> stringval toLocaleString : 'a t -> stringIteration functions
val entries : 'a t -> (int * 'a) Js.iteratorval every : f:('a -> bool) -> 'a t -> boolval everyi : f:('a -> int -> bool) -> 'a t -> boolval find : f:('a -> bool) -> 'a t -> 'a optionval findi : f:('a -> int -> bool) -> 'a t -> 'a optionval findIndex : f:('a -> bool) -> 'a t -> intval findIndexi : f:('a -> int -> bool) -> 'a t -> intval forEach : f:('a -> unit) -> 'a t -> unitval forEachi : f:('a -> int -> unit) -> 'a t -> unitval keys : 'a t -> int Js.iteratorval reduce : f:('b -> 'a -> 'b) -> init:'b -> 'a t -> 'bval reducei : f:('b -> 'a -> int -> 'b) -> init:'b -> 'a t -> 'bval reduceRight : f:('b -> 'a -> 'b) -> init:'b -> 'a t -> 'bval reduceRighti : f:('b -> 'a -> int -> 'b) -> init:'b -> 'a t -> 'bval some : f:('a -> bool) -> 'a t -> boolval somei : f:('a -> int -> bool) -> 'a t -> boolval values : 'a t -> 'a Js.iterator