@array-like/alloc

ArrayLike allocation helper functions for JavaScript

Usage no npm install needed!

<script type="module">
  import arrayLikeAlloc from 'https://cdn.skypack.dev/@array-like/alloc';
</script>

README

: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

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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