# @frosted/array-reverse

> Reverse an array.

Latest version **1.0.2** (published 2026-02-27) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2026-02-27 |
| First published | 2026-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 18 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | 10x'ly Made |
| Maintainers | tj-commits |
| Keywords | 10xly, mit, is-hundred, is-ten-thousand |

## Links

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

## Dependencies (18)

- [bail](https://npm.io/package/bail.md) ^1.0.5
- [subtract](https://npm.io/package/subtract.md) ^0.0.3
- [@not-js/not](https://npm.io/package/@not-js/not.md) ^1.1.1
- [is-empty-array](https://npm.io/package/is-empty-array.md) ^1.1.0
- [immediate-error](https://npm.io/package/immediate-error.md) ^2.0.0
- [is-not-negative](https://npm.io/package/is-not-negative.md) ^1.0.3
- [lodash.stubarray](https://npm.io/package/lodash.stubarray.md) ^4.13.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
- [es-intrinsic-cache](https://npm.io/package/es-intrinsic-cache.md) ^1.0.4
- [es-error-intrinsics](https://npm.io/package/es-error-intrinsics.md) ^1.0.1
- [@10xly/strict-equals](https://npm.io/package/@10xly/strict-equals.md) ^1.0.1
- [@10xly/is-instance-of](https://npm.io/package/@10xly/is-instance-of.md) ^1.0.0
- [@positive-numbers/one](https://npm.io/package/@positive-numbers/one.md) ^3.0.0
- [@is-(unknown)/is-array](https://npm.io/package/@is-(unknown)/is-array.md) ^1.0.2
- [es-logical-and-operator](https://npm.io/package/es-logical-and-operator.md) ^1.0.0
- [es-logical-not-operator](https://npm.io/package/es-logical-not-operator.md) ^1.0.0
- [es-logical-nullish-coalescing-operator](https://npm.io/package/es-logical-nullish-coalescing-operator.md) ^1.0.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

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

## README

# @frosted/array-reverse
Ponyfill for Array.prototype.toReversed

## Installation
```bash
npm install @frosted/array-reverse
```

## Usage
```js
const reverse = require("@frosted/array-reverse")

console.log(reverse([1, 2, 3])) // [3, 2, 1]

console.log(reverse("not array")) // Error: Expects an array
```

Shimming Array.prototype.reverse:
```js
require("@frosted/array-reverse/shim")

console.log([1, 2, 3].toReversed()) // [3, 2, 1]
```

## Tests
Simply clone the repo and run npm test

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