Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/to-fast-properties
Force V8 to use fast properties for an object
https://github.com/sindresorhus/to-fast-properties
Last synced: about 1 month ago
JSON representation
Force V8 to use fast properties for an object
- Host: GitHub
- URL: https://github.com/sindresorhus/to-fast-properties
- Owner: sindresorhus
- License: mit
- Created: 2015-03-04T12:55:43.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-09-30T22:26:14.000Z (about 3 years ago)
- Last Synced: 2024-05-19T14:29:12.832Z (6 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 234
- Watchers: 12
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-list - to-fast-properties
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 propertiestoFastProperties(object);
// `object` now has fast properties
```