Js.Array2Provide bindings to Js array
JavaScript Array API
val from : 'a array_like -> 'a arrayval fromMap : 'a array_like -> ('a -> 'b) -> 'b arrayval pop : 'a t -> 'a optionhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
val push : 'a t -> 'a -> intval pushMany : 'a t -> 'a array -> intval shift : 'a t -> 'a optionval unshift : 'a t -> 'a -> intval unshiftMany : 'a t -> 'a array -> intval includes : 'a t -> 'a -> boolES2016
val indexOf : 'a t -> 'a -> intval indexOfFrom : 'a t -> 'a -> from:int -> intval joinWith : 'a t -> string -> stringval lastIndexOf : 'a t -> 'a -> intval lastIndexOfFrom : 'a t -> 'a -> from:int -> intval toString : 'a t -> stringval toLocaleString : 'a t -> stringval every : 'a t -> ('a -> bool) -> boolval everyi : 'a t -> ('a -> int -> bool) -> boolshould we use bool or boolean seems they are intechangeable here
val find : 'a t -> ('a -> bool) -> 'a optionval findi : 'a t -> ('a -> int -> bool) -> 'a optionval findIndex : 'a t -> ('a -> bool) -> intval findIndexi : 'a t -> ('a -> int -> bool) -> intval forEach : 'a t -> ('a -> unit) -> unitval forEachi : 'a t -> ('a -> int -> unit) -> unitval reduce : 'a t -> ('b -> 'a -> 'b) -> 'b -> 'bval reducei : 'a t -> ('b -> 'a -> int -> 'b) -> 'b -> 'bval reduceRight : 'a t -> ('b -> 'a -> 'b) -> 'b -> 'bval reduceRighti : 'a t -> ('b -> 'a -> int -> 'b) -> 'b -> 'bval some : 'a t -> ('a -> bool) -> boolval somei : 'a t -> ('a -> int -> bool) -> bool