ee27d85942817e5bf8ae66a86a89d3861de73b08506e66a2a808ba80af0dc89cefe1cfa7dcebe904d6a3e69f00a8ec13debf4833c299c2117d0f8c2148af31 733 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties)
  2. > Force V8 to use fast properties for an object
  3. [Read more.](http://stackoverflow.com/questions/24987896/)
  4. Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.
  5. ## Install
  6. ```
  7. $ npm install --save to-fast-properties
  8. ```
  9. ## Usage
  10. ```js
  11. const toFastProperties = require('to-fast-properties');
  12. const obj = {
  13. foo: true,
  14. bar: true
  15. };
  16. delete obj.foo;
  17. // `obj` now has slow properties
  18. toFastProperties(obj);
  19. // `obj` now has fast properties
  20. ```
  21. ## License
  22. MIT © Petka Antonov, Sindre Sorhus