Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.99 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.99 KB

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

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size