2.0.8 • Published 10 days ago

object.fromentries v2.0.8

Weekly downloads
8,520,432
License
MIT
Repository
github
Last release
10 days ago

object.fromentries Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES spec-proposal-compliant Object.fromEntries shim. Invoke its "shim" method to shim Object.fromEntries if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.

Most common usage:

var assert = require('assert');
var fromEntries = require('object.fromentries');

var obj = { a: 1, b: 2, c: 3 };
var actual = fromEntries(Object.entries(obj));

assert.deepEqual(obj, actual);

if (!Object.fromEntries) {
	fromEntries.shim();
}

assert.deepEqual(Object.fromEntries(Object.entries(obj)), obj);

Tests

Simply clone the repo, npm install, and run npm test

eslint-plugin-importeslint-plugin-reacteslint-plugin-jsx-a11yairbnb-js-shimsenzyme-adapter-utils@huyhpham/rn-lineeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imagepipihome@deriv/traderreact-native-template-rfbaseairscanairscan-examplemd4blogreact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_modmutasi-bca@verdict/angular@versem/angular@saeon/quick-form@you54f/serverless-offlinereact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilswilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-object_@saaspe/componentsexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-2365jawwy-sdkjawwy_gamification_release@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uimachinebeemrcapsreact-native-jawwy_samplenexus-plugin-prometheusmyzallnka-gantt-task-reactmy-rizki-appnative-date-picker-modulenative-modal-damage-vehiclenative-kakao-loginnative-google-loginnative-apple-loginneeharyxnew-awesome-4321novacap-componentsnpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2akatsukitearxx@zoldixs/zoldixs-tea@zijiezhou/weda-ui@zh0st/evm-chains@zalastax/nolb-object_agent-get-agentact_mvvm_shop_cartadarshsinghal-editor-previewadyen-rnaffinidi-auth-sdk-kernelagueromorales92angletearx12apps-bogegaxonv2sdk@amirdiafi/react-native-ios-haptics@amiruldev/wajsayang94awesome-module-kd@arielapaula/components@arielapaula/test@arkalone/arkalone-yogyakarta@ahmed-hairon/sharing@alexshmyrkov/react-rangerappcharge-checkoutappcharge-checkout-reactjs-sdk@3fv/serverless-offlinebirken-react-native-community-image-editorbiometric-stberduayaasync-bus
2.0.8

10 days ago

2.0.7

7 months ago

2.0.6

1 year ago

2.0.5

2 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.0.1-security

6 years ago