/alloc

:seat: ArrayLike allocation helper functions for JavaScript

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

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