:seat: @array-like/alloc
ArrayLike
allocation helper functions for JavaScript.
See docs.
import {alloc, malloc, _calloc} from '@array-like/alloc';
alloc(10); // Array
malloc(10); // ArrayBuffer
const calloc = _calloc(Int32Array);
calloc(10); // Int32Array