Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@santi100/bisect-lib

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@santi100/bisect-lib - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

cjs/package.json

2

cjs/index.d.ts
/**
* 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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc