@codinasion/linear-search
v1.0.2
Published
TypeScript implementation of linear search
Downloads
3
Maintainers
Readme
@codinasion/linear-search
TypeScript implementation of linear search.
Installation
# if you're using pnpm
pnpm add @codinasion/linear-search
# or, if you're using npm
npm install @codinasion/linear-search
# or, if you're using yarn
yarn add @codinasion/linear-search
Usage
import { LinearSearch } from "@codinasion/linear-search";
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const result = LinearSearch(arr, 5);
console.log(result); // 4