# to-fast-properties

> Force V8 to use fast properties for an object

Latest version **4.0.0** (published 2021-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-fast-properties
pnpm add to-fast-properties
yarn add to-fast-properties
bun add to-fast-properties
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-08-08 |
| First published | 2015-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12.20 |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 243 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | object, properties, props, v8, optimize, fast, convert, mode |

## Links

- npm: https://www.npmjs.com/package/to-fast-properties
- Repository: https://github.com/sindresorhus/to-fast-properties
- Homepage: https://github.com/sindresorhus/to-fast-properties#readme
- Issues: https://github.com/sindresorhus/to-fast-properties/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/to-fast-properties

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2021-08-08
- 3.0.1 — 2020-02-01
- 3.0.0 — 2019-11-13
- 2.0.0 — 2017-06-09
- 1.0.3 — 2017-04-30
- 1.0.2 — 2016-03-20
- 1.0.1 — 2015-03-06
- 1.0.0 — 2015-03-04

## README

# to-fast-properties

> Force V8 to use fast properties for an object

[Read more.](https://stackoverflow.com/questions/24987896/)

Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.

## Install

```
$ npm install to-fast-properties
```

## Usage

```js
import toFastProperties from 'to-fast-properties';

const object = {
	foo: true,
	bar: true
};

delete object.foo;
// `object` now has slow properties

toFastProperties(object);
// `object` now has fast properties
```

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