string-reduce
1.0.0 • Public • Published string-reduce 
Reduce a string to a value
Installation
npm i --save string-reduce
Usage
var reduce = require('string-reduce')
var sum = reduce('yolo', (sum, char) => {
return sum + character.charCodeAt()
}, 0)
var expectedSum = 0 +
'y'.charCodeAt(0) +
'o'.charCodeAt(0) +
'l'.charCodeAt(0) +
'o'.charCodeAt(0)
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads