Js.ArrayProvide bindings to Js array
JavaScript Array API
val from : 'a array_like -> 'a arrayval fromMap : 'a array_like -> ('a -> 'b) -> 'b arrayval copyWithin : to_:int -> 'a t as 'this -> 'thisval copyWithinFrom : to_:int -> from:int -> 'a t as 'this -> 'thisval copyWithinFromRange :
to_:int ->
start:int ->
end_:int ->
'a t as 'this ->
'thisval fillInPlace : 'a -> 'a t as 'this -> 'thisval fillFromInPlace : 'a -> from:int -> 'a t as 'this -> 'thisval fillRangeInPlace : 'a -> start:int -> end_:int -> 'a t as 'this -> 'thisval pop : 'a t as 'this -> 'a optionhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
val push : 'a -> 'a t as 'this -> intval pushMany : 'a array -> 'a t as 'this -> intval reverseInPlace : 'a t as 'this -> 'thisval shift : 'a t as 'this -> 'a optionval sortInPlace : 'a t as 'this -> 'thisval sortInPlaceWith : ('a -> 'a -> int) -> 'a t as 'this -> 'thisval spliceInPlace :
pos:int ->
remove:int ->
add:'a array ->
'a t as 'this ->
'thisval removeFromInPlace : pos:int -> 'a t as 'this -> 'thisval removeCountInPlace : pos:int -> count:int -> 'a t as 'this -> 'thisval unshift : 'a -> 'a t as 'this -> intval unshiftMany : 'a array -> 'a t as 'this -> intval append : 'a -> 'a t as 'this -> 'thisval concat : 'this -> 'a t as 'this -> 'thisval concatMany : 'this array -> 'a t as 'this -> 'thisval includes : 'a -> 'a t as 'this -> boolES2016
val indexOf : 'a -> 'a t as 'this -> intval indexOfFrom : 'a -> from:int -> 'a t as 'this -> intval join : 'a t -> stringval joinWith : string -> 'a t as 'this -> stringval lastIndexOf : 'a -> 'a t as 'this -> intval lastIndexOfFrom : 'a -> from:int -> 'a t as 'this -> intval lastIndexOf_start : 'a -> 'a t as 'this -> intval slice : start:int -> end_:int -> 'a t as 'this -> 'thisval copy : 'a t as 'this -> 'thisval slice_copy : unit -> 'a t as 'this -> 'thisval sliceFrom : int -> 'a t as 'this -> 'thisval slice_start : int -> 'a t as 'this -> 'thisval toString : 'a t as 'this -> stringval toLocaleString : 'a t as 'this -> stringval every : ('a -> bool) -> 'a t as 'this -> boolval everyi : ('a -> int -> bool) -> 'a t as 'this -> boolval filter : ('a -> bool) -> 'a t as 'this -> 'thisshould we use bool or boolean seems they are intechangeable here
val filteri : ('a -> int -> bool) -> 'a t as 'this -> 'thisval find : ('a -> bool) -> 'a t as 'this -> 'a optionval findi : ('a -> int -> bool) -> 'a t as 'this -> 'a optionval findIndex : ('a -> bool) -> 'a t as 'this -> intval findIndexi : ('a -> int -> bool) -> 'a t as 'this -> intval forEach : ('a -> unit) -> 'a t as 'this -> unitval forEachi : ('a -> int -> unit) -> 'a t as 'this -> unitval reduce : ('b -> 'a -> 'b) -> 'b -> 'a t as 'this -> 'bval reducei : ('b -> 'a -> int -> 'b) -> 'b -> 'a t as 'this -> 'bval reduceRight : ('b -> 'a -> 'b) -> 'b -> 'a t as 'this -> 'bval reduceRighti : ('b -> 'a -> int -> 'b) -> 'b -> 'a t as 'this -> 'bval some : ('a -> bool) -> 'a t as 'this -> boolval somei : ('a -> int -> bool) -> 'a t as 'this -> bool