# @types/selectn

> TypeScript definitions for selectn

Latest version **1.1.3** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/selectn
pnpm add @types/selectn
yarn add @types/selectn
bun add @types/selectn
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-21 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/selectn
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectn
- npm.io page: https://npm.io/package/@types/selectn

## Recent versions

- 1.1.3 (latest) — 2023-11-21
- 1.1.0 (ts3.5) — 2021-04-06
- 1.1.2 — 2023-11-07
- 1.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/selectn`

# Summary
This package contains type definitions for selectn (https://github.com/wilmoore/selectn.js).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectn.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectn/index.d.ts)
````ts
/**
 * Curried property accessor function that resolves deeply-nested object properties via dot/bracket-notation
 * string path while mitigating `TypeErrors` via friendly and composable API.
 *
 * @param path
 * Dot/bracket-notation string path or array.
 *
 * @param object
 * Object to access.
 *
 * @returns
 * Returns `selectn/1` when partially applied.
 *
 * Returns value at path if path exists.
 *
 * Returns `undefined` if path does not exist.
 */
declare function selectn(
    path: string | readonly string[],
    object: any,
): any;

declare function selectn(
    path: string | readonly string[],
): (object: any) => any;

export = selectn;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ben Daly](https://github.com/bendaly818).

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