5.12.93 • Published 10 months ago

@diotoborg/harum-neque v5.12.93

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

5.12.92

10 months ago

5.11.92

10 months ago

5.11.91

10 months ago

5.11.90

10 months ago

5.11.89

10 months ago

5.10.89

10 months ago

5.10.88

10 months ago

5.10.87

10 months ago

5.10.86

10 months ago

5.10.85

10 months ago

5.10.84

10 months ago

5.10.83

10 months ago

5.10.82

10 months ago

5.10.81

10 months ago

5.10.80

10 months ago

5.10.79

11 months ago

5.10.78

11 months ago

5.10.77

11 months ago

5.10.76

11 months ago

5.10.75

11 months ago

5.10.74

11 months ago

5.9.74

11 months ago

5.9.73

11 months ago

5.9.72

11 months ago

5.9.71

11 months ago

5.9.70

11 months ago

5.9.69

11 months ago

5.9.68

11 months ago

5.9.67

11 months ago

5.8.67

11 months ago

5.8.66

11 months ago

5.8.65

11 months ago

5.7.65

11 months ago

5.7.64

11 months ago

5.7.63

11 months ago

5.6.63

11 months ago

5.6.62

11 months ago

5.6.61

11 months ago

5.6.60

11 months ago

5.6.59

11 months ago

5.6.58

11 months ago

5.6.57

11 months ago

5.6.56

11 months ago

5.6.55

11 months ago

5.6.54

11 months ago

5.6.53

12 months ago

4.6.53

12 months ago

4.6.52

12 months ago

4.6.51

12 months ago

4.6.50

12 months ago

4.6.49

12 months ago

4.6.48

12 months ago

4.6.47

12 months ago

4.6.46

12 months ago

4.6.45

12 months ago

4.5.45

12 months ago

4.5.44

12 months ago

4.5.43

12 months ago

4.4.43

12 months ago

4.4.42

12 months ago

4.4.41

12 months ago

4.4.40

12 months ago

4.4.39

12 months ago

4.4.38

12 months ago

3.4.38

12 months ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

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.1.4

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