JSPM

binary-search-pkg-create

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q17487F
    • License ISC

    binary search

    Package Exports

    • binary-search-pkg-create
    • binary-search-pkg-create/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (binary-search-pkg-create) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Binary Search

    A simple and efficient binary search function implemented in JavaScript.

    Description

    This function performs a binary search on a sorted array to find the index of a target element. Binary search is a highly efficient algorithm with a time complexity of O(log n), making it much faster than linear search for large datasets.

    Installation

    Install the package via npm:

    npm install binary-search-pkg-create