Js_array2
JavaScript Array API
val from : 'a array_like -> 'a array
val fromMap : 'a array_like -> ('a -> 'b) -> 'b array
val pop : 'a t -> 'a option
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
val push : 'a t -> 'a -> int
val pushMany : 'a t -> 'a array -> int
val shift : 'a t -> 'a option
val unshift : 'a t -> 'a -> int
val unshiftMany : 'a t -> 'a array -> int
val includes : 'a t -> 'a -> bool
ES2016
val indexOf : 'a t -> 'a -> int
val indexOfFrom : 'a t -> 'a -> from:int -> int
val joinWith : 'a t -> string -> string
val lastIndexOf : 'a t -> 'a -> int
val lastIndexOfFrom : 'a t -> 'a -> from:int -> int
val toString : 'a t -> string
val toLocaleString : 'a t -> string
val every : 'a t -> ('a -> bool) -> bool
val everyi : 'a t -> ('a -> int -> bool) -> bool
should we use bool
or boolean
seems they are intechangeable here
val find : 'a t -> ('a -> bool) -> 'a option
val findi : 'a t -> ('a -> int -> bool) -> 'a option
val findIndex : 'a t -> ('a -> bool) -> int
val findIndexi : 'a t -> ('a -> int -> bool) -> int
val forEach : 'a t -> ('a -> unit) -> unit
val forEachi : 'a t -> ('a -> int -> unit) -> unit
val reduce : 'a t -> ('b -> 'a -> 'b) -> 'b -> 'b
val reducei : 'a t -> ('b -> 'a -> int -> 'b) -> 'b -> 'b
val reduceRight : 'a t -> ('b -> 'a -> 'b) -> 'b -> 'b
val reduceRighti : 'a t -> ('b -> 'a -> int -> 'b) -> 'b -> 'b
val some : 'a t -> ('a -> bool) -> bool
val somei : 'a t -> ('a -> int -> bool) -> bool