0.1.0 • Published 9 years ago
percentify v0.1.0
percentify
Install
$ npm install --save percentify
Usage
import percentify from 'percentify';
let objectWithPercentage = percentify({ a: 5, b: 4, c: 1})
// objectWithPercentage would deep equal { a: 0.5, b: 0.4, c: 0.1}
API
percentify(input, options)
input
Required
Type: object
the value of each key should be number
License
MIT © transedward
0.1.0
9 years ago