@ilihub/binary-search
Binary search algorithm implementation in TypeScript.
Installation
# if you're using pnpm
pnpm add @ilihub/binary-search
# or, if you're using npm
npm install @ilihub/binary-search
# or, if you're using yarn
yarn add @ilihub/binary-search
Usage
import { BinarySearch } from "@ilihub/binary-search";
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const result = BinarySearch(arr, 5);
console.log(result); // 4
🛠️ Online Tool ⚡
You can use this npm package as an online tool by clicking on the link provided 👉🏻 here 👈🏻
Sponsors & Backers
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.