5.12.93 • Published 4 months ago

@diotoborg/harum-neque v5.12.93

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@diotoborg/harum-neque 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('@diotoborg/harum-neque');

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

YAMLmockdeep-cloneglobalsansitc39Float32ArrayparserECMAScript 7formsasciivestjQueryemitfnmatchhookformlintrangeerrorvalidateCSSStyleDeclarationlibphonenumberapifunction.lengthstatelessTypedArraycloudfrontescapejsxcss lessendermakesyntaxerrorajaxcommand-linecompile lessfantasy-landobjectpreprocessorcloudwatchjson-schema-validatorPushlivesetPrototypeOfES6whichurlmatchAllconcatMapstringifyfindLasttrimEndphoneECMAScript 2021colourslicemake dirTypeBoxes2017utilitiesmoduleeffect-tsidentifierschromestringworkflowkeys6to5awsdomfindLastIndexpruneArray.prototype.flatencryptionfixed-widthObject.entriesoptionObject.fromEntriesRxarraysextratrimlengthreadablestreamRxJSstarterruntimeboundes2015binkeysetpackage manageruninstallsyntaxjestshebangrulesString.prototype.matchAllbabel-corees7uploadgrouparktypecurried$.extendflattenletObject.definePropertyconsumecommandjoirobustreadlockfilebabelsignalsoperating-systemloadingmatchgesturesargvES2020installerbyteArrayBuffer#sliceanimationworkerECMAScript 3functionsserviceinternalweakmapless cssarraybuffermobileimportexportcloudtrailschemaTypeScriptweaksetpyyamlcore-jsutil.inspectsymlinksObservablesprototypefastbootstrap csshas-ownECMAScript 6speedECMAScript 2022extendsesjson-schemadragespreetddopensslfindimmerfunctionalgradients css3react-hook-formnegative zerorgbworkspace:*environmentslinuxplugindatebufferstyled-componentsArrayBuffer.prototype.sliceiteratordeepqstypanionslotES2022private datapackagescryptenumerabletypeofzoddependenciessigint-0ArrayECMAScript 2017trimStartflatfilterebs_.extenddeep-copyassigntoolszerodiffCSSfsvalidgetoptxhrnopesnsobjtoArrayeventEmitterthreeshamglobalbundlerjsgetterES2019package.jsonpropertiesjson-schema-validationwidthprotobufjwtpropertyspawni18nspringoncegetPrototypeOfqueuenegativejsdiffperformantWebSocketObject.assignES8optimistgenericsfastifyes6stylesheetUint8ClampedArraylruECMAScriptReactiveXreduxroutefromteststructuredClonehelpersexpressionBigInt64Arrayes5macosastcsscurliteratebeanstalklocationJSONeslintes2016deterministicxtermpreserve-symlinkscjkstringifiernpmasterisksstyleMicrosoftpolyfillclassnameflagjavascriptreal-timeauthfunctionassertionredirectcollectionObject.isfullwidthfastcopydatastructurecoreapollovariables in cssbrowserES3a11ywgetendpointregular expressionECMAScript 2020waapies8validatorclientargsjsonforEachinReflect.getPrototypeOfsortedregexpIteratorreadableresolvebyteLengthmkdirpoptimizerprefixsomeES2018performanceRegExp.prototype.flags@@toStringTagES2015styleguideconsoleartl10nconcattypesafeelectronestreegetintrinsicimmutabletransportES2017environmentnodejsloggingtypedexecfiletostringtaglesscsses-shimsArray.prototype.filterfpentriesbrowserslistcloudsearchreact-hookswarningfpsamazonsharedarraybuffergetOwnPropertyDescriptorrandomcallintrinsicformautoprefixerelmfastclonepersistentimportecmascriptexitmapreduceirqsetImmediatecallboundshellFunction.prototype.namemergenumberRFC-6455css variableeverydependency managerprotocol-buffersArray.prototype.includesstatusutilitydefineSymbol.toStringTagpushcallbindzxArray.prototype.flatMapObject.keysmodulesmkdirslessdescriptionES5rapidchanneltoolkitURLSearchParamsreducehasOwnPropertyargumentdatadropfast-copyfull-widthsuperagent256trimRightbyteOffsethooksspinnerslistenersdescriptorscharactertelephoneAsyncIteratorJSON-SchemautilStreamsString.prototype.trimwaitserializationunicodebddshrinkwrapqueueMicrotasksymbolclass-validatorcopy0computed-typesjapaneseinputArray.prototype.findLastIndextacitglaciershimES2021pnpm9idleignoregradients cssstreamsStyleSheetrdsforkcompilerutilsdataViewclonefast-deep-copyinvariantpopmotioncreateyupinspect
5.12.93

4 months ago

5.12.92

4 months ago

5.11.92

5 months ago

5.11.91

5 months ago

5.11.90

5 months ago

5.11.89

5 months ago

5.10.89

5 months ago

5.10.88

5 months ago

5.10.87

5 months ago

5.10.86

5 months ago

5.10.85

5 months ago

5.10.84

5 months ago

5.10.83

5 months ago

5.10.82

5 months ago

5.10.81

5 months ago

5.10.80

5 months ago

5.10.79

5 months ago

5.10.78

5 months ago

5.10.77

5 months ago

5.10.76

5 months ago

5.10.75

5 months ago

5.10.74

5 months ago

5.9.74

5 months ago

5.9.73

5 months ago

5.9.72

5 months ago

5.9.71

5 months ago

5.9.70

5 months ago

5.9.69

5 months ago

5.9.68

5 months ago

5.9.67

5 months ago

5.8.67

5 months ago

5.8.66

5 months ago

5.8.65

6 months ago

5.7.65

6 months ago

5.7.64

6 months ago

5.7.63

6 months ago

5.6.63

6 months ago

5.6.62

6 months ago

5.6.61

6 months ago

5.6.60

6 months ago

5.6.59

6 months ago

5.6.58

6 months ago

5.6.57

6 months ago

5.6.56

6 months ago

5.6.55

6 months ago

5.6.54

6 months ago

5.6.53

6 months ago

4.6.53

6 months ago

4.6.52

6 months ago

4.6.51

6 months ago

4.6.50

6 months ago

4.6.49

6 months ago

4.6.48

6 months ago

4.6.47

6 months ago

4.6.46

6 months ago

4.6.45

6 months ago

4.5.45

6 months ago

4.5.44

6 months ago

4.5.43

6 months ago

4.4.43

6 months ago

4.4.42

6 months ago

4.4.41

6 months ago

4.4.40

7 months ago

4.4.39

7 months ago

4.4.38

7 months ago

3.4.38

7 months ago

2.4.38

7 months ago

2.4.37

7 months ago

2.4.36

7 months ago

2.4.35

7 months ago

2.4.34

7 months ago

2.4.33

7 months ago

2.4.32

7 months ago

2.4.31

7 months ago

2.3.31

7 months ago

2.3.30

7 months ago

2.3.29

7 months ago

2.3.28

7 months ago

2.3.27

7 months ago

2.3.26

7 months ago

2.3.25

7 months ago

2.3.24

7 months ago

2.3.23

7 months ago

2.2.23

7 months ago

2.2.22

7 months ago

2.2.21

7 months ago

2.2.20

7 months ago

2.2.19

7 months ago

2.2.18

7 months ago

2.2.17

7 months ago

2.1.17

7 months ago

2.1.16

7 months ago

1.1.16

8 months ago

1.1.15

8 months ago

1.1.14

8 months ago

1.1.13

8 months ago

1.1.12

8 months ago

1.1.11

8 months ago

1.1.10

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago