Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 24-Sep-2023 | 294 | 12 | 11 | |
license | D | 24-Sep-2023 | 1.1 KiB | 23 | 18 | |
package.json | D | 24-Sep-2023 | 645 | 36 | 35 | |
readme.md | D | 24-Sep-2023 | 733 | 38 | 22 |
readme.md
1# to-fast-properties [](https://travis-ci.org/sindresorhus/to-fast-properties) 2 3> Force V8 to use fast properties for an object 4 5[Read more.](http://stackoverflow.com/questions/24987896/) 6 7Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties. 8 9 10## Install 11 12``` 13$ npm install --save to-fast-properties 14``` 15 16 17## Usage 18 19```js 20const toFastProperties = require('to-fast-properties'); 21 22const obj = { 23 foo: true, 24 bar: true 25}; 26 27delete obj.foo; 28// `obj` now has slow properties 29 30toFastProperties(obj); 31// `obj` now has fast properties 32``` 33 34 35## License 36 37MIT © Petka Antonov, Sindre Sorhus 38