array-price-total

1.0.2 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i array-price-total

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

1.3 kB

Total Files

4

Last publish

Collaborators

  • kannadhasan