nonempty-list

A list that always has at least one thing in it.

Usage no npm install needed!

<script type="module">
  import nonemptyList from 'https://cdn.skypack.dev/nonempty-list';
</script>

README

NonEmpty List

A data structure that acts like a list but guarantees that the list always has at least one item.