to-fast-properties
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    3,748
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    3,748
  • 3.0.1
    141,787
  • 3.0.0
    144
  • 2.0.0
    33,045,168
  • 1.0.3
    3,427,720
  • 1.0.2
    35,634
  • 1.0.1
    38,764
  • 1.0.0
    2

Package Sidebar

Install

npm i to-fast-properties

Weekly Downloads

29,972,499

Version

4.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus