Urara-Blog/node_modules/.pnpm-store/v3/files/ab/da86ae253e24c17f49ba6923ef55e10e2f84761ab583b959298510a2f3b9d7884713d49da0d0be81a0d185787006770448a14a0fc54294b4a1c5225196dec3
2022-08-14 01:14:53 +08:00

37 lines
752 B
Text

# to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties)
> Force V8 to use fast properties for an object
[Read more.](http://stackoverflow.com/questions/24987896/)
Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.
## Install
```
$ npm install --save to-fast-properties
```
## Usage
```js
const toFastProperties = require('to-fast-properties');
const obj = {
foo: true,
bar: true
};
delete obj.foo;
// `obj` now has slow properties
toFastProperties(obj);
// `obj` now has fast properties
```
## License
MIT © Petka Antonov, John-David Dalton, Sindre Sorhus