3.1.23 • Published 1 year ago
@juigorg/id-reprehenderit-ratione v3.1.23
@juigorg/id-reprehenderit-ratione 
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('@juigorg/id-reprehenderit-ratione');
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
3.1.18
1 year ago
3.1.17
1 year ago
3.1.23
1 year ago
3.1.22
1 year ago
3.1.21
1 year ago
3.1.20
1 year ago
3.1.19
1 year ago
3.1.16
1 year ago
3.0.13
1 year ago
3.1.15
1 year ago
3.0.14
1 year ago
3.0.15
1 year ago
3.0.12
1 year ago
3.0.11
1 year ago
3.0.10
1 year ago
2.0.10
1 year ago
2.0.9
1 year ago
2.0.8
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago