grand-array
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -254,10 +254,4 @@ module.exports = { | ||
countOfPairs : function(arr){ | ||
var pairs = 0; | ||
var j = 1; | ||
for(var i = 0; i < arr.length; i++){ | ||
pairs += arr.length - j; | ||
j++; | ||
} | ||
return pairs; | ||
return arr.length * (arr.length - 1)/2 | ||
} | ||
} |
{ | ||
"name": "grand-array", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Easy to use Array Manipulator with tons of Array Operations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10785
253