0.0.1-security.0 • Published 1 year ago

@kollorg/quaerat-ad v0.0.1-security.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@kollorg/quaerat-ad Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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('@kollorg/quaerat-ad');

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

2.2.17

1 year ago

2.2.18

1 year ago

2.2.16

1 year ago

2.3.24

1 year ago

2.4.35

1 year ago

2.3.23

1 year ago

0.0.1-security

1 year ago

2.3.25

1 year ago

2.4.32

1 year ago

2.3.20

1 year ago

2.4.31

1 year ago

2.4.34

1 year ago

2.3.22

1 year ago

2.4.33

1 year ago

2.3.21

1 year ago

2.4.30

1 year ago

2.2.19

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.25

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.2.20

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago