product-of-arr

1.0.3 • Public • Published

Product of array element

Product of arr is a lightweight Node.js library to calculate the product of array element.

Installation

To use Product of arr in your Node.js project, you can install it using npm:

npm install product-of-arr

Usage

Import the library

const productOfArr = require('product-of-arr');
or
import {...} = require('product-of-arr');

Functions

Product of array element

const product = productOfArr.calculateProduct([0, 1, false, 2, '', 3]);
console.log(product); // 6

License

This project is licensed under the ISC License.

Author

[@oleg]

Readme

Keywords

Package Sidebar

Install

npm i product-of-arr

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

2.72 kB

Total Files

5

Last publish

Collaborators

  • esap