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,708
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    2,708
  • 3.0.1
    130,671
  • 3.0.0
    135
  • 2.0.0
    32,259,775
  • 1.0.3
    3,331,960
  • 1.0.2
    36,405
  • 1.0.1
    768
  • 1.0.0
    1

Package Sidebar

Install

npm i to-fast-properties

Weekly Downloads

35,762,423

Version

4.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus