5.12.93 • Published 1 year ago

@diotoborg/harum-neque v5.12.93

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

1 year ago

5.12.92

1 year ago

5.11.92

1 year ago

5.11.91

1 year ago

5.11.90

1 year ago

5.11.89

1 year ago

5.10.89

1 year ago

5.10.88

1 year ago

5.10.87

1 year ago

5.10.86

1 year ago

5.10.85

1 year ago

5.10.84

1 year ago

5.10.83

1 year ago

5.10.82

1 year ago

5.10.81

1 year ago

5.10.80

1 year ago

5.10.79

1 year ago

5.10.78

1 year ago

5.10.77

1 year ago

5.10.76

1 year ago

5.10.75

1 year ago

5.10.74

1 year ago

5.9.74

1 year ago

5.9.73

1 year ago

5.9.72

1 year ago

5.9.71

1 year ago

5.9.70

1 year ago

5.9.69

1 year ago

5.9.68

1 year ago

5.9.67

1 year ago

5.8.67

1 year ago

5.8.66

1 year ago

5.8.65

1 year ago

5.7.65

1 year ago

5.7.64

1 year ago

5.7.63

1 year ago

5.6.63

1 year ago

5.6.62

1 year ago

5.6.61

1 year ago

5.6.60

1 year ago

5.6.59

1 year ago

5.6.58

1 year ago

5.6.57

1 year ago

5.6.56

1 year ago

5.6.55

1 year ago

5.6.54

1 year ago

5.6.53

1 year ago

4.6.53

1 year ago

4.6.52

1 year ago

4.6.51

1 year ago

4.6.50

1 year ago

4.6.49

1 year ago

4.6.48

1 year ago

4.6.47

1 year ago

4.6.46

1 year ago

4.6.45

1 year ago

4.5.45

1 year ago

4.5.44

1 year ago

4.5.43

1 year ago

4.4.43

1 year ago

4.4.42

1 year ago

4.4.41

1 year ago

4.4.40

1 year ago

4.4.39

1 year ago

4.4.38

1 year ago

3.4.38

1 year 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