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

binary-search

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-search - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

.travis.yml

6

binary-search.d.ts

@@ -5,6 +5,6 @@ //Typescript type definition for:

function binarySearch<A>(
function binarySearch<A, B>(
haystack: A[],
needle: A,
comparator: (a: A, b: A, index?: number, haystack?: A[]) => any,
needle: B,
comparator: (a: A, b: B, index?: number, haystack?: A[]) => any,
// Notes about comparator return value:

@@ -11,0 +11,0 @@ // * when a<b the comparator's returned value should be:

{
"name": "binary-search",
"version": "1.3.2",
"version": "1.3.3",
"description": "tiny binary search function with comparators",

@@ -5,0 +5,0 @@ "license": "CC0-1.0",

@@ -33,5 +33,5 @@ binary-search

To the extend possible by law, The Dark Sky Company, LLC has [waived all
To the extent possible by law, The Dark Sky Company, LLC has [waived all
copyright and related or neighboring rights][cc0] to this library.
[cc0]: http://creativecommons.org/publicdomain/zero/1.0/
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