sum-list
Add up all of the numbers in an array of numbers. Also works when non-numbers are present as well.
Features
npm
Install
npm install --save sum-list
Script Tag
For Development
<script src="https://rawgit.com/Prosen-Ghosh/sum-list/master/sum.js"></script>
For Production
<script src="https://cdn.rawgit.com/Prosen-Ghosh/sum-list/ed0e191c/sum.js"></script>
Usage
var sum = ;//=> 10;//=> 20 ;//=> 15;//=> 6 //TypeError ; // Without parameter function call will throw an type error//=> TypeError: sum() expects an array parameter
Author
Prosen Ghosh prosenghosh25@gmail.com
License
- MIT