Js_typed_array2
JavaScript Typed Array API
see MDN
array_buffer
type array_buffer
array_like
type array_like<'a>
ArrayBuffer
The underlying buffer that the typed arrays provide views of
**see** [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
t
type t = array_buffer
make
takes length. initializes elements to 0
let make: int => t
byteLength
let byteLength: t => int
slice
let slice: (t, ~start: int, ~end_: int) => array_buffer
sliceFrom
let sliceFrom: (t, int) => array_buffer
Int8Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Uint8Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Uint8ClampedArray
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Int16Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Uint16Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Int32Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Uint32Array
elt
type elt = int
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Float32Array
elt
type elt = float
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
Float64Array
elt
type elt = float
typed_array
type typed_array<'a>
t
type t = typed_array<elt>
unsafe_get
let unsafe_get: (t, int) => elt
unsafe_set
let unsafe_set: (t, int, elt) => unit
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
setArray
let setArray: (t, array<elt>) => unit
setArrayOffset
let setArrayOffset: (t, array<elt>, int) => unit
length
let length: t => int
copyWithin
let copyWithin: (t, ~to_: int) => t
copyWithinFrom
let copyWithinFrom: (t, ~to_: int, ~from: int) => t
copyWithinFromRange
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t
fillInPlace
let fillInPlace: (t, elt) => t
fillFromInPlace
let fillFromInPlace: (t, elt, ~from: int) => t
fillRangeInPlace
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t
reverseInPlace
let reverseInPlace: t => t
sortInPlace
let sortInPlace: t => t
sortInPlaceWith
let sortInPlaceWith: (t, (. elt, elt) => int) => t
includes
let includes: (t, elt) => bool
indexOf
let indexOf: (t, elt) => int
indexOfFrom
let indexOfFrom: (t, elt, ~from: int) => int
join
let join: t => string
joinWith
let joinWith: (t, string) => string
lastIndexOf
let lastIndexOf: (t, elt) => int
lastIndexOfFrom
let lastIndexOfFrom: (t, elt, ~from: int) => int
slice
start
is inclusive, end_
exclusive
let slice: (t, ~start: int, ~end_: int) => t
copy
let copy: t => t
sliceFrom
let sliceFrom: (t, int) => t
subarray
start
is inclusive, end_
exclusive
let subarray: (t, ~start: int, ~end_: int) => t
subarrayFrom
let subarrayFrom: (t, int) => t
toString
let toString: t => string
toLocaleString
let toLocaleString: t => string
every
let every: (t, (. elt) => bool) => bool
everyi
let everyi: (t, (. elt, int) => bool) => bool
filter
let filter: (t, (. elt) => bool) => t
filteri
let filteri: (t, (. elt, int) => bool) => t
find
let find: (t, (. elt) => bool) => Js.undefined<elt>
findi
let findi: (t, (. elt, int) => bool) => Js.undefined<elt>
findIndex
let findIndex: (t, (. elt) => bool) => int
findIndexi
let findIndexi: (t, (. elt, int) => bool) => int
forEach
let forEach: (t, (. elt) => unit) => unit
forEachi
let forEachi: (t, (. elt, int) => unit) => unit
map
let map: (t, (. elt) => 'b) => typed_array<'b>
mapi
let mapi: (t, (. elt, int) => 'b) => typed_array<'b>
reduce
let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b
reducei
let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b
reduceRight
let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b
reduceRighti
let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b
some
let some: (t, (. elt) => bool) => bool
somei
let somei: (t, (. elt, int) => bool) => bool
_BYTES_PER_ELEMENT
let _BYTES_PER_ELEMENT: int
make
let make: array<elt> => t
fromBuffer
can throw
let fromBuffer: array_buffer => t
fromBufferOffset
raise Js.Exn.Error raise Js exception
**param** offset is in bytes
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
raise Js.Exn.Error raises Js exception
**param** offset is in bytes, length in elements
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
fromLength
let fromLength: int => t
from
let from: array_like<elt> => t
DataView
t
type t
make
let make: array_buffer => t
fromBuffer
let fromBuffer: array_buffer => t
fromBufferOffset
let fromBufferOffset: (array_buffer, int) => t
fromBufferRange
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t
buffer
let buffer: t => array_buffer
byteLength
let byteLength: t => int
byteOffset
let byteOffset: t => int
getInt8
let getInt8: (t, int) => int
getUint8
let getUint8: (t, int) => int
getInt16
let getInt16: (t, int) => int
getInt16LittleEndian
let getInt16LittleEndian: (t, int) => int
getUint16
let getUint16: (t, int) => int
getUint16LittleEndian
let getUint16LittleEndian: (t, int) => int
getInt32
let getInt32: (t, int) => int
getInt32LittleEndian
let getInt32LittleEndian: (t, int) => int
getUint32
let getUint32: (t, int) => int
getUint32LittleEndian
let getUint32LittleEndian: (t, int) => int
getFloat32
let getFloat32: (t, int) => float
getFloat32LittleEndian
let getFloat32LittleEndian: (t, int) => float
getFloat64
let getFloat64: (t, int) => float
getFloat64LittleEndian
let getFloat64LittleEndian: (t, int) => float
setInt8
let setInt8: (t, int, int) => unit
setUint8
let setUint8: (t, int, int) => unit
setInt16
let setInt16: (t, int, int) => unit
setInt16LittleEndian
let setInt16LittleEndian: (t, int, int) => unit
setUint16
let setUint16: (t, int, int) => unit
setUint16LittleEndian
let setUint16LittleEndian: (t, int, int) => unit
setInt32
let setInt32: (t, int, int) => unit
setInt32LittleEndian
let setInt32LittleEndian: (t, int, int) => unit
setUint32
let setUint32: (t, int, int) => unit
setUint32LittleEndian
let setUint32LittleEndian: (t, int, int) => unit
setFloat32
let setFloat32: (t, int, float) => unit
setFloat32LittleEndian
let setFloat32LittleEndian: (t, int, float) => unit
setFloat64
let setFloat64: (t, int, float) => unit
setFloat64LittleEndian
let setFloat64LittleEndian: (t, int, float) => unit