1811a-utils-1

module.exports = (...arr) => { let sum = 0; arr.forEach(v => sum += v); return sum; }

Usage no npm install needed!

<script type="module">
  import 811aUtils1 from 'https://cdn.skypack.dev/1811a-utils-1';
</script>

README

这是我的第一个包

    module.exports = (...arr) => {
        let sum = 0;
        arr.forEach(v => sum += v);
        return sum;
    }