Wondering what’s next for npm?Check out our public roadmap! »

to-fast-properties

3.0.1 • Public • Published

to-fast-properties Build Status

Force V8 to use fast properties for an object

Read more.

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

Install

npm i to-fast-properties

DownloadsWeekly Downloads

18,767,197

Version

3.0.1

License

MIT

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • avatar