Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/float16/src/index.mjs>Float16Array

Stage 1 IEEE 754 half-precision floating-point for JavaScript
Go to Latest
class Float16Array
import { Float16Array } from "https://deno.land/x/float16@v3.7.0/src/index.mjs";

Constructors

new
Float16Array(
input,
_byteOffset,
_length,
)

Properties

readonly
[SymbolToStringTag]

Methods

at(index)
copyWithin(
target,
start,
...opts,
)

limitation: returns a object whose prototype is not %ArrayIteratorPrototype%

every(callback, ...opts)
fill(value, ...opts)
filter(callback, ...opts)
find(callback, ...opts)
findIndex(callback, ...opts)
findLast(callback, ...opts)
findLastIndex(callback, ...opts)
forEach(callback, ...opts)
includes(element, ...opts)
indexOf(element, ...opts)
join(separator)
lastIndexOf(element, ...opts)
map(callback, ...opts)
reduce(callback, ...opts)
reduceRight(callback, ...opts)
set(input, ...opts)
slice(start, end)
some(callback, ...opts)
sort(compareFn)
subarray(begin, end)
toSorted(compareFn)

limitation: returns a object whose prototype is not %ArrayIteratorPrototype%

with(index, value)

Static Methods

from(src, ...opts)

limitation: Object.getOwnPropertyNames(Float16Array) or Reflect.ownKeys(Float16Array) include this key

of(...items)

limitation: Object.getOwnPropertyNames(Float16Array) or Reflect.ownKeys(Float16Array) include this key