README
Price calculation in the array
Install
$ npm i array-price-total
Usage
const arrayTotal = require('array-price-total');
let arr =[
{ Produc: 'product-1'
price: '3'
},
{
Produc: 'product-2'
price: 2
},
{
Produc: 'product-3'
price: '5'
}
]
arrayTotal(arr,'price');
//=> 'unicorns & rainbows'