Js.ArrayBindings to the functions in Array.prototype
JavaScript Array API
type array_like('a) = Js.array_like('a);let from: array_like('a) => array('a);let fromMap: array_like('a) => f:('a => 'b) => array('b);Mutating functions
let pop: t('a) => option('a);https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop
let push: value:'a => t('a) => int;let pushMany: values:array('a) => t('a) => int;let shift: t('a) => option('a);returns a new array with the elements sorted in ascending order. (ES2023)
returns a new array with the elements sorted in ascending order. (ES2023)
changes the contents of the given array by removing or replacing existing elements and/or adding new elements in place. returns a new array containing the removed elements.
returns a new array with some elements removed and/or replaced at a given index. (ES2023)
removes all elements from the given array starting at the start index and returns the removed elements.
returns a new array with elements removed starting at the start index. (ES2023)
removes count elements from the given array starting at the start index and returns the removed elements.
returns a new array with count elements removed starting at the start index. (ES2023)
let unshift: value:'a => t('a) => int;let unshiftMany: values:array('a) => t('a) => int;let includes: value:'a => t('a) => bool;ES2015
let join: ?sep:string => t('a) => string;Accessor functions
let at: index:int => t('a) => option('a);ES2022
let indexOf: value:'a => ?start:int => t('a) => int;let lastIndexOf: value:'a => t('a) => int;let lastIndexOfFrom: value:'a => start:int => t('a) => int;let toString: t('a) => string;let toLocaleString: t('a) => string;Iteration functions
let entries: t('a) => Js.iterator((int, 'a));let every: f:('a => bool) => t('a) => bool;let everyi: f:('a => int => bool) => t('a) => bool;let find: f:('a => bool) => t('a) => option('a);let findi: f:('a => int => bool) => t('a) => option('a);let findLast: f:('a => bool) => t('a) => option('a);let findLasti: f:('a => int => bool) => t('a) => option('a);let findIndex: f:('a => bool) => t('a) => int;let findIndexi: f:('a => int => bool) => t('a) => int;let findLastIndex: f:('a => bool) => t('a) => int;let findLastIndexi: f:('a => int => bool) => t('a) => int;let forEach: f:('a => unit) => t('a) => unit;let forEachi: f:('a => int => unit) => t('a) => unit;let keys: t('a) => Js.iterator(int);let reduce: f:('b => 'a => 'b) => init:'b => t('a) => 'b;let reducei: f:('b => 'a => int => 'b) => init:'b => t('a) => 'b;let reduceRight: f:('b => 'a => 'b) => init:'b => t('a) => 'b;let reduceRighti: f:('b => 'a => int => 'b) => init:'b => t('a) => 'b;let some: f:('a => bool) => t('a) => bool;let somei: f:('a => int => bool) => t('a) => bool;let values: t('a) => Js.iterator('a);