Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

object.fromentries

Package Overview
Dependencies
3
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

object.fromentries

ES proposal-spec-compliant Object.fromEntries shim.

    2.0.5latest

Version published
Maintainers
1
Weekly downloads
12,736,232
increased by0.62%

Weekly downloads

Readme

Source

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

Keywords

FAQs

What is object.fromentries?

ES proposal-spec-compliant Object.fromEntries shim.

Is object.fromentries popular?

The npm package object.fromentries receives a total of 12,223,578 weekly downloads. As such, object.fromentries popularity was classified as popular.

Is object.fromentries well maintained?

We found that object.fromentries demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 03 Oct 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc