to-fast-properties

Force V8 to use fast properties for an object

MIT 8 个版本
安装
npm install to-fast-properties
yarn add to-fast-properties
pnpm add to-fast-properties
bun add 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
版本列表
4.0.0 2021-08-08
3.0.1 2020-02-01
3.0.0 2019-11-13
2.0.0 2017-06-09
1.0.3 2017-04-30
1.0.2 2016-03-20
1.0.1 2015-03-06
1.0.0 2015-03-04