array-binarysearch.closest
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -6,3 +6,3 @@ function binarySearch(arr, val, bgn=0, end=arr.length) { | ||
else if(arr[m]>val) end = m; | ||
else break; | ||
else return m; | ||
} | ||
@@ -9,0 +9,0 @@ return bgn; |
{ | ||
"name": "array-binarysearch.closest", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Get index of closest value in sorted array.", | ||
@@ -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
1399