1.0.3 • Published 5 months ago
product-of-arr v1.0.3
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.