github-pages-deploy-action/node_modules/to-fast-properties
2020-03-31 08:40:00 -04:00
..
index.js Dependencies Required 2020-01-28 00:07:56 -05:00
license Dependencies Required 2020-01-28 00:07:56 -05:00
package.json 3.4.3 2020-03-31 08:40:00 -04:00
readme.md Dependencies Required 2020-01-28 00:07:56 -05:00

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 --save to-fast-properties

Usage

const toFastProperties = require('to-fast-properties');

const obj = {
	foo: true,
	bar: true
};

delete obj.foo;
// `obj` now has slow properties

toFastProperties(obj);
// `obj` now has fast properties

License

MIT © Petka Antonov, John-David Dalton, Sindre Sorhus