1.5.20 • Published 1 year ago
@juigorg/facere-blanditiis-cupiditate v1.5.20
@juigorg/facere-blanditiis-cupiditate 
An ES2017 spec-compliant Object.entries
shim. Invoke its "shim" method to shim Object.entries
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 spec.
Most common usage:
var assert = require('assert');
var entries = require('@juigorg/facere-blanditiis-cupiditate');
var obj = { a: 1, b: 2, c: 3 };
var expected = [['a', 1], ['b', 2], ['c', 3]];
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
// for environments with Symbol support
var sym = Symbol();
obj[sym] = 4;
obj.d = sym;
expected.push(['d', sym]);
}
assert.deepEqual(entries(obj), expected);
if (!Object.entries) {
entries.shim();
}
assert.deepEqual(Object.entries(obj), expected);
Tests
Simply clone the repo, npm install
, and run npm test
1.5.18
1 year ago
1.5.19
1 year ago
1.5.20
1 year ago
1.4.15
1 year ago
1.4.17
1 year ago
1.4.16
1 year ago
1.4.18
1 year ago
1.3.15
1 year ago
1.3.13
1 year ago
1.3.14
1 year ago
1.3.11
1 year ago
1.3.12
1 year ago
1.2.11
1 year ago
1.2.10
1 year ago
1.2.9
1 year ago
1.2.8
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
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
1.0.1
1 year ago
1.0.0
1 year ago