# find-insert-index

> Find the index to insert an element in array keeping the sort order.

Latest version **0.0.1** (published 2013-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install find-insert-index
pnpm add find-insert-index
yarn add find-insert-index
bun add find-insert-index
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-10-30 |
| First published | 2013-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | João Nuno Silva |
| Maintainers | jnuno |
| Keywords | find, array, index, sort, stable |

## Links

- npm: https://www.npmjs.com/package/find-insert-index
- Repository: https://github.com/joaonuno/find-insert-index-js
- Issues: https://github.com/joaonuno/find-insert-index-js/issues
- npm.io page: https://npm.io/package/find-insert-index

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-10-30

## README

find-insert-index
=================

Find the index to insert an element in array keeping the sort order.

[![Build Status](https://travis-ci.org/joaonuno/find-insert-index-js.png)](https://travis-ci.org/joaonuno/find-insert-index-js)

# Example

```
var findInsertIndex, comparatorFn;
findInsertIndex = require('find-insert-index');
comparatorFn = function (a, b) {
  return a.id - b.id;
};

findInsertIndex(comparatorFn, [{id: 7}, {id: 8}], {id: 7});
// 1
```

---
_Source: https://npm.io/package/find-insert-index · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
