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
    2,033
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    2,033
  • 3.0.1
    123,922
  • 3.0.0
    154
  • 2.0.0
    32,919,443
  • 1.0.3
    3,432,346
  • 1.0.2
    37,348
  • 1.0.1
    35,288
  • 1.0.0
    14

Package Sidebar

Install

npm i to-fast-properties

Weekly Downloads

36,550,548

Version

4.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus