/** Checks system endianness. Returns true if little-endian, else false. */
export const isLE = new Bytes(getBuffer(new Words([1])))[0] === 1
-/**
- * Sets `array[index] = value` as an element the array owns. Assignment, `push`
- * and `fill` all store through the prototype chain when the index is not yet
- * defined, and call any setter found there instead, so an accessor added to
- * `Array.prototype` after load could swallow the write and answer every read.
- * The descriptor has no prototype, so a `get` or `set` added to
- * `Object.prototype` cannot make it look like an accessor.
- */
+/** Sets `array[index] = value`, avoiding prototypes and getters/setters. */
export function slot<T> (array: T[], index: number, value: T): void {
const descriptor = ObjectCreate(null)
descriptor.value = value