to-fast-properties ![Build Status](https://camo.githubusercontent.com/4d1308a296775d7526c421eed34494d411f63a938601e3d0192e4af9a43c45bd/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f746f2d666173742d70726f706572746965732e7376673f6272616e63683d6d6173746572)
Force V8 to use fast properties for an object
Use %HasFastProperties(object)
and --allow-natives-syntax
to check whether an object already has fast properties.
Install
$ npm install to-fast-properties
Usage
const toFastProperties = require('to-fast-properties');
const object = {
foo: true,
bar: true
};
delete object.foo;
// `object` now has slow properties
toFastProperties(object);
// `object` now has fast properties