Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 404 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 404 Bytes

Object.fromEntries() polyfill

Provides polyfill for Object.fromEntries().

Usage

Importing the module will automatically monkey-patch the Object class, adding the static method only if needed. If the functionality is already present, nothing is done.

require('js-polyfill-object.fromentries');

or

import 'js-polyfill-object.fromentries';
Object.fromEntries(...);