# @frosted/array-at

> Get the item at a specified index in an array, allowing for positive and negative integers

Latest version **1.0.1** (published 2026-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @frosted/array-at
pnpm add @frosted/array-at
yarn add @frosted/array-at
bun add @frosted/array-at
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-02-15 |
| First published | 2026-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 10x'ly Made / Frosted |
| Maintainers | tj-commits |
| Keywords | 10xly, made, is-hundred, frosted-javascript |

## Links

- npm: https://www.npmjs.com/package/@frosted/array-at
- Repository: https://github.com/frosted-javascript/array-at
- Homepage: https://github.com/frosted-javascript/array-at#readme
- Issues: https://github.com/frosted-javascript/array-at/issues
- npm.io page: https://npm.io/package/@frosted/array-at

## Dependencies (10)

- [add-one](https://npm.io/package/add-one.md) ^1.0.3
- [lolite.abs](https://npm.io/package/lolite.abs.md) ^1.1.17
- [@not-js/not](https://npm.io/package/@not-js/not.md) ^1.1.1
- [is-negative](https://npm.io/package/is-negative.md) ^2.1.0
- [immediate-error](https://npm.io/package/immediate-error.md) ^2.0.0
- [ununcurry-this-x](https://npm.io/package/ununcurry-this-x.md) ^1.0.0
- [define-properties](https://npm.io/package/define-properties.md) ^1.2.1
- [@10xly/strict-equals](https://npm.io/package/@10xly/strict-equals.md) ^1.0.1
- [@frosted/array-reverse](https://npm.io/package/@frosted/array-reverse.md) ^1.0.0
- [@is-(unknown)/is-array](https://npm.io/package/@is-(unknown)/is-array.md) ^1.0.2

## Recent versions

- 1.0.1 (latest) — 2026-02-15
- 1.0.0 — 2026-02-15

## README

# @frosted/array-at
Ponyfill for Array.prototype.at

## Installation
```bash
npm install @frosted/array-at
```

## Usage
```js
const at = require("@frosted/array-at")

console.log(at([1, 2, 3], 1)) // 2

console.log(at([20, 40, 60, 80], -2)) // 60

console.log(at("not array", 2)) // Error: Expects an array
```

Shimming Array.prototype.at:
```js
require("@frosted/array-at/shim")

console.log([1, 2, 3].at(1)) // 2
```

## Tests
Simply clone the repo and run npm test

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