API / Js / TypedArray_typeS

TypedArray type S

TODO

t

RES
type elt type typed_array<'a> type t = typed_array<elt>

unsafe_get

RES
let unsafe_get: (t, int) => elt

unsafe_set

RES
let unsafe_set: (t, int, elt) => unit

buffer

RES
let buffer: t => Js_typed_array.array_buffer

byteLength

RES
let byteLength: t => int

byteOffset

RES
let byteOffset: t => int

setArray

RES
let setArray: (array<elt>, t) => unit

setArrayOffset

RES
let setArrayOffset: (array<elt>, int, t) => unit

length

RES
let length: t => int

copyWithin

RES
let copyWithin: (~to_: int, t) => t

copyWithinFrom

RES
let copyWithinFrom: (~to_: int, ~from: int, t) => t

copyWithinFromRange

RES
let copyWithinFromRange: (~to_: int, ~start: int, ~end_: int, t) => t

fillInPlace

RES
let fillInPlace: (elt, t) => t

fillFromInPlace

RES
let fillFromInPlace: (elt, ~from: int, t) => t

fillRangeInPlace

RES
let fillRangeInPlace: (elt, ~start: int, ~end_: int, t) => t

reverseInPlace

RES
let reverseInPlace: t => t

sortInPlace

RES
let sortInPlace: t => t

sortInPlaceWith

RES
let sortInPlaceWith: ((. elt, elt) => int, t) => t

includes

RES
let includes: (elt, t) => bool

indexOf

RES
let indexOf: (elt, t) => int

indexOfFrom

RES
let indexOfFrom: (elt, ~from: int, t) => int

join

RES
let join: t => string

joinWith

RES
let joinWith: (string, t) => string

lastIndexOf

RES
let lastIndexOf: (elt, t) => int

lastIndexOfFrom

RES
let lastIndexOfFrom: (elt, ~from: int, t) => int

slice

RES
let slice: (~start: int, ~end_: int, t) => t

copy

RES
let copy: t => t

sliceFrom

RES
let sliceFrom: (int, t) => t

subarray

RES
let subarray: (~start: int, ~end_: int, t) => t

subarrayFrom

RES
let subarrayFrom: (int, t) => t

toString

RES
let toString: t => string

toLocaleString

RES
let toLocaleString: t => string

every

RES
let every: ((. elt) => bool, t) => bool

everyi

RES
let everyi: ((. elt, int) => bool, t) => bool

filter

RES
let filter: ((. elt) => bool, t) => t

filteri

RES
let filteri: ((. elt, int) => bool, t) => t

find

RES
let find: ((. elt) => bool, t) => Js.undefined<elt>

findi

RES
let findi: ((. elt, int) => bool, t) => Js.undefined<elt>

findIndex

RES
let findIndex: ((. elt) => bool, t) => int

findIndexi

RES
let findIndexi: ((. elt, int) => bool, t) => int

forEach

RES
let forEach: ((. elt) => unit, t) => unit

forEachi

RES
let forEachi: ((. elt, int) => unit, t) => unit

map

RES
let map: ((. elt) => 'b, t) => typed_array<'b>

mapi

RES
let mapi: ((. elt, int) => 'b, t) => typed_array<'b>

reduce

RES
let reduce: ((. 'b, elt) => 'b, 'b, t) => 'b

reducei

RES
let reducei: ((. 'b, elt, int) => 'b, 'b, t) => 'b

reduceRight

RES
let reduceRight: ((. 'b, elt) => 'b, 'b, t) => 'b

reduceRighti

RES
let reduceRighti: ((. 'b, elt, int) => 'b, 'b, t) => 'b

some

RES
let some: ((. elt) => bool, t) => bool

somei

RES
let somei: ((. elt, int) => bool, t) => bool