digital-root

Calculate the digital root of a number.

Usage no npm install needed!

<script type="module">
  import digitalRoot from 'https://cdn.skypack.dev/digital-root';
</script>

README

digital-root Build Status

Calculate the digital root of a number.

Install

$ npm install --save digital-root

Usage

var digitalRoot = require('digital-root');

digitalRoot(65536);
//=> 7

License

MIT © Andreas Gillström