Not Providing Milkshakes

    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

    Install

    npm i to-fast-properties

    DownloadsWeekly Downloads

    30,312,124

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus