@santi100/bisect-lib
Advanced tools
Comparing version 0.0.1 to 0.0.2
/** | ||
* Searches through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* Searches for `target` through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* @param array The array to look through. It's highly recommended to sort it before passing it to this function, in order to make it faster. | ||
@@ -4,0 +4,0 @@ * @param target The item to look for. |
@@ -5,3 +5,3 @@ "use strict"; | ||
/** | ||
* Searches through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* Searches for `target` through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* @param array The array to look through. It's highly recommended to sort it before passing it to this function, in order to make it faster. | ||
@@ -8,0 +8,0 @@ * @param target The item to look for. |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "index.js", | ||
@@ -24,3 +24,4 @@ "author": "santi100a <santyrojasprieto9@gmail.com>", | ||
"test:watch": "jest --watchAll" | ||
} | ||
}, | ||
"type": "module" | ||
} |
@@ -20,2 +20,2 @@ # Santi's Bisect Library | ||
- `function bisect<T = unknown>(array: T[], target: T): number;` Searches through `array` with a recursive binary-search algorithm (better for sorted arrays). Returns the index of the first ocurrence of the element, or -1 if it's not present. | ||
- `function bisect<T = unknown>(array: T[], target: T): number;` Searches for `target` through `array` with a recursive binary-search algorithm (suited for sorted arrays). Returns the index of the first ocurrence of `target`, or -1 if it's not present. |
/** | ||
* Searches through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* Searches for `target` through `array` with a recursive binary-search algorithm (better for sorted arrays). | ||
* @param array The array to look through. It's highly recommended to sort it before passing it to this function, in order to make it faster. | ||
@@ -4,0 +4,0 @@ * @param target The item to look for. |
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
11002
15
80
Yes
2