@buckneri/collections

A small collection of data structure functions

Usage no npm install needed!

<script type="module">
  import buckneriCollections from 'https://cdn.skypack.dev/@buckneri/collections';
</script>

README

collections

A small collection of data structure related functions


const b = deepCopy(a);

const q = new Queue([3,2,1,2,3,4]);
q.next().next();
//> [1,2,3,4]

const scr = new Slicer();

uniqueArray([1,2,3,1,1,2,4]);
//> [1,2,3,4]

Install

npm i --save @buckneri/collections