smart-push

Push object to collection, replace if it already exists

Usage no npm install needed!

<script type="module">
  import smartPush from 'https://cdn.skypack.dev/smart-push';
</script>

README

Simple collection updating function, allowing you to push or replace an object in a collection