5.12.93 • Published 2 years ago

@diotoborg/harum-neque v5.12.93

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

2 years ago

5.12.92

2 years ago

5.11.92

2 years ago

5.11.91

2 years ago

5.11.90

2 years ago

5.11.89

2 years ago

5.10.89

2 years ago

5.10.88

2 years ago

5.10.87

2 years ago

5.10.86

2 years ago

5.10.85

2 years ago

5.10.84

2 years ago

5.10.83

2 years ago

5.10.82

2 years ago

5.10.81

2 years ago

5.10.80

2 years ago

5.10.79

2 years ago

5.10.78

2 years ago

5.10.77

2 years ago

5.10.76

2 years ago

5.10.75

2 years ago

5.10.74

2 years ago

5.9.74

2 years ago

5.9.73

2 years ago

5.9.72

2 years ago

5.9.71

2 years ago

5.9.70

2 years ago

5.9.69

2 years ago

5.9.68

2 years ago

5.9.67

2 years ago

5.8.67

2 years ago

5.8.66

2 years ago

5.8.65

2 years ago

5.7.65

2 years ago

5.7.64

2 years ago

5.7.63

2 years ago

5.6.63

2 years ago

5.6.62

2 years ago

5.6.61

2 years ago

5.6.60

2 years ago

5.6.59

2 years ago

5.6.58

2 years ago

5.6.57

2 years ago

5.6.56

2 years ago

5.6.55

2 years ago

5.6.54

2 years ago

5.6.53

2 years ago

4.6.53

2 years ago

4.6.52

2 years ago

4.6.51

2 years ago

4.6.50

2 years ago

4.6.49

2 years ago

4.6.48

2 years ago

4.6.47

2 years ago

4.6.46

2 years ago

4.6.45

2 years ago

4.5.45

2 years ago

4.5.44

2 years ago

4.5.43

2 years ago

4.4.43

2 years ago

4.4.42

2 years ago

4.4.41

2 years ago

4.4.40

2 years ago

4.4.39

2 years ago

4.4.38

2 years ago

3.4.38

2 years ago

2.4.38

2 years ago

2.4.37

2 years ago

2.4.36

2 years ago

2.4.35

2 years ago

2.4.34

2 years ago

2.4.33

2 years ago

2.4.32

2 years ago

2.4.31

2 years ago

2.3.31

2 years ago

2.3.30

2 years ago

2.3.29

2 years ago

2.3.28

2 years ago

2.3.27

2 years ago

2.3.26

2 years ago

2.3.25

2 years ago

2.3.24

2 years ago

2.3.23

2 years ago

2.2.23

2 years ago

2.2.22

2 years ago

2.2.21

2 years ago

2.2.20

2 years ago

2.2.19

2 years ago

2.2.18

2 years ago

2.2.17

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago