@amphibian/copy

copies variable content

Usage no npm install needed!

<script type="module">
  import amphibianCopy from 'https://cdn.skypack.dev/@amphibian/copy';
</script>

README

copy

build status

copies variable content

npm install @amphibian/copy
var copy = require('@amphibian/copy');

var object = {
    obj: {
        foo: 'bar',
        bar: 'foo'
    },
    obj2: {
        foo: 'bar',
        bar: 'foo'
    },
    arr: [0, 1, 2, 3]
};

// Copy an object
copy(object);