@array-like/realloc

ArrayLike reallocation for JavaScript

Usage no npm install needed!

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

README

:recycle: @array-like/realloc

ArrayLike reallocation for JavaScript. See docs.

import {alloc} from '@array-like/alloc';
import {iota} from '@array-like/fill';
import {realloc} from '@array-like/realloc':

const a = alloc(100);
iota(a, 0, 100, 0);
const b = realloc(a, 200); // 0 1 2 .. 98 99 undefined undefined ...

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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