JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20097388
  • Score
    100M100P100Q223475F
  • License MIT

Force V8 to use fast properties for an object

Package Exports

  • to-fast-properties

Readme

to-fast-properties

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

import toFastProperties from 'to-fast-properties';

const object = {
    foo: true,
    bar: true
};

delete object.foo;
// `object` now has slow properties

toFastProperties(object);
// `object` now has fast properties