5.4.88 • Published 1 year ago

@taktikorg/est-amet v5.4.88

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

@taktikorg/est-amet 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('@taktikorg/est-amet');

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

isgetoptttywhichArray.prototype.containscolorsreduceres-abstracttakestateletpluginshelljson-schema-validatorgradients csscloneerror-handlingyamleslinttoobjectclass-validatorapiESnexttacitES6enderawsfilterrdsnodejspnpm9schemaoptimistvisualtypanionES3eslintpluginfast-clonejapaneseautoscalingdependency managerquotesharedarraybufferObject.assignpopmotioncachecallfantasy-landes-shim APIestreeMapzxlinuxfromutiltouchfpsarraybufferdataViewhooks__proto__defineglobalsymboldeterministicreact-componenttrimsigterminvariantObject.keyses6internal slotfast-deep-clonezodwaapivariables in cssmomentbinariesECMAScript 2019wgetgradients css3rapidfastifyfastclonepredictablelockfilecontainsArraytestingasciiperformantmrufunctionpureredux-toolkitsymbolsforEachmkdirpmapebsstylingECMAScript 2021fulldeepJSONreplayswfdescriptorsideminimalpackage manageres5formattingweakmapgitignoreextraWebSocketsjsonschemadeepcloneargumentsignedwhatwgECMAScript 2023regularinstallercoreconsumeflattencloudsearchemroutputStreamsprototypeselfparsetslibwafdayjsreducepatchinputless mixinsbrowsersliststringifyrequirehasOwnnumberresolveECMAScript 5modulesECMAScript 6getterSystem.globaltraverseutilityback-endjQuerytimeObservableObject.valuesownstringifiera11ytddcolumnsprotobufnodeless.jspushiterationcomputed-types@@toStringTagmanagerl10nworkerJSON-SchemamockingrangeerrorgetintrinsichardlinksbannersetUint32Arraycallbindeslintconfigfast-deep-copylistenersjestboundreal-timeidletesterdeepcopysuperagentdropajvamazonchaicjkregular-expressionES2023Int8ArrayerrorinhelperdatereduxescapeflagdirstylelessTypedArraysharedsafeObjectsymlinkreact-testing-libraryES2020core-jsbines2016browserlistsymlinksfppicomatchlogtoolsprotocol-bufferssimpledbsettingstypeerrorcolorsqscharacterbytequerystringArray.prototype.flatfile systemtoStringTagcloudwatchcall-bindestoArraybabel-coreecmascriptECMAScript 2022stringinstallelbomitexpressES7$.extendhasOwnPropertyentriesenvironmentpinoartexectypeofroute53Reflect.getPrototypeOfcommand-linegroupByRxJSconstclassnameseventEmitterstyled-componentsSymbolruntimeECMAScript 2015point-freewaitremovejsxbyteLengthlastmetadatargbstyleguidestoragegatewayprettyincludesfnmatchdynamodbdatastructuresetImmediatecircularjscurlcopyvpcassignflags-0jsonnopetransportpasswordrobustECMAScript 2018getOwnPropertyDescriptorserializerutilsregexbuffersnamesgettc39exit-codeglobalsqueuevalidatestatuspyyamlagentcommandec2ReactiveXredirecttoSortedkinesisbddgetPrototypeOffullwidthvestpreprocessornpmenumerablehandlersnamecheckponyfillpropflatMapMicrosofttypedWeakSetfunctionalECMAScript 3routinguploadprivatefluxhigher-orderbootstrap csstypedarraysvalidFloat32ArrayUint8Arrayiterateio-tslesscsspostcsseventssyntaxastexpression256Array.prototype.filterbundlerInt16ArrayemitroutechromelruWebSocketwidthacornstreamindicatortranspileESarktypeloadinghttpjavascriptserverinferencebindvariablesES2019subprocessdeleteconcatMapfindLastIndexStreamregular expressionspinnerwritablegdprfixed-widthstructuredCloneoffsettypedarraysignalimmutablemacosinspectRxnegativephonetypesafeArrayBuffer#slicecallboundwalkextendhelpersECMAScript 2017deep-clonepolyfillreuses3readdescriptioniteratorcloudformationreadableserializationutil.inspectreadablestreamgestureskoreanonceES2016fastmobileObject.definePropertyArray.prototype.findLastIndexclientparserjson-schemaoptionfetchgroupdotenvmoveserializeshebangcallbackvalidationiaminternalWeakMapmkdirInt32ArraybusyequalchannelasyncefficientBigInt64ArraysignalsArrayBuffervaluessnsloggeroperating-systemjsdompreserve-symlinksES2021i18nes2015lintsomeless cssxtermgraphqlconsolespinnersbootstrap lessarraybyteOffsetdragmixinswindowsdirectorybundlingfilekeyforkURLSearchParamsqueueMicrotaskECMAScriptargs.gitignoreES2015createCSS_.extendbuffercss nestinglazydomtranspilerSettscodesdefinePropertyvarsFloat64ArrayexitchildfigletObject.entriesajaxjwtansiglobalThispipenativefindLastoptimizer0nested cssmakefastcopyES20173dgenericses7stylesheetcryptargvtrimRightcollection.es6mkdirsObservablesformsglobal objectspeedanimationrulesfunction.lengthRegExp.prototype.flagscolourPush
5.4.88

1 year ago

5.4.87

1 year ago

4.4.87

1 year ago

4.4.86

1 year ago

4.4.85

1 year ago

4.4.84

1 year ago

4.4.83

1 year ago

4.4.82

1 year ago

4.4.81

1 year ago

4.4.80

1 year ago

4.4.79

1 year ago

4.4.78

1 year ago

4.4.77

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

3.4.67

1 year ago

3.4.66

1 year ago

3.4.65

1 year ago

3.3.65

1 year ago

3.3.64

1 year ago

3.3.63

1 year ago

3.3.62

1 year ago

3.3.61

1 year ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.3.57

1 year ago

3.3.56

1 year ago

3.3.55

1 year ago

3.3.54

1 year ago

2.3.54

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

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

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

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

1 year ago

2.1.18

1 year ago

2.1.17

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

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

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