lg-calc
v1.0.1-alpha.0
Published
<img alt="tested with mocha and chai" src="https://img.shields.io/badge/tested-with_mocha_and_chai-ff69b4.svg" />
Readme
lg-calc
A utility that accepts an object and returns an integer.
Setup
$ npm i lg-calcUse
import calc from 'lg-calc';
calc({
one: {
price: 287,
qty: 5,
},
two: {
price: 233,
qty: 3,
},
}); // returns 2134