to-fast-properties
Force V8 to use fast properties for an object
Last updated 5 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install to-fast-properties 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.1                                ...           latest (5 months ago)

7 Versions

  • 3.0.1                                ...           5 months ago
  • 3.0.0                                ...           8 months ago
  • 2.0.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |