sum-product
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "sum-product", | ||
"version": "0.0.1", | ||
"description": "classic spreadsheet sum or array item products", | ||
"version": "0.0.2", | ||
"description": "classic spreadsheet sum of array item products", | ||
"author": "Hugo Villeneuve", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
}, | ||
"main": "./src/index.js", | ||
"main": "./index.js", | ||
"dependencies": {}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -12,3 +12,3 @@ # sum-product | ||
Simple and small standalone function to calculate the sum of the product of items in the parameters | ||
Simple and small standalone function to calculate the sum of the product of array items. | ||
`sumProduct([0,1], [2,3], [4,5]) // 0*2*4 + 1*3*5 = 15` | ||
@@ -28,5 +28,9 @@ | ||
var result = sumProduct([0,1], [2,3], [4,5]) // 0*2*4 + 1*3*5 = 15 | ||
result = sumProduct() // ==>0 | ||
result = sumProduct([]) // ==>0 | ||
result = sumProduct([a]) // ==>NaN | ||
``` | ||
## Test | ||
@@ -33,0 +37,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
2078
3
16
42
0