1.0.13 • Published 1 month ago

@hishprorg/earum-dolores-a v1.0.13

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

@hishprorg/earum-dolores-a 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('@hishprorg/earum-dolores-a');

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

nativeemitieicustableECMAScript 7private databrowserjestESkeyssetImmediateoutputMaplinewraprm -frconcatES2019setterhasOwnPropertyphoneloggingiamInt32ArrayconcatMapclass-validatorUint16ArrayeventssharedArray.prototype.findLastes2015xhrquerystringpackage.jsonpropertybyteOffsetsuperstructrobustroutingfunctionstoolkitrangeerrorTypeScriptBigInt64ArrayarrayscommandemrObject.assigncore-jsES2021cryptosnssearchrandomgetterjsdifflook-upreact-testing-libraryendpointcolumnsperformantchildframerfindLastshebangdependency managercomputed-typesES2015urljQuerytoolsparsershrinkwrapregular expressionexecutableES2022rfc4122reduceflattentypanionwaapiwgetbddutil.inspectdatastructureInt8ArraycallebscurljsonPromisegetintrinsicisConcatSpreadableindicatoropenersortedsimple cachetestObjectgetUint32Arraysimpledbmatchanimationconfigpromisescssmake dirsymbolsimmutableSymbolregexPusha11yeditorhttpspromiseomitpropassertiontasksetsliceSymbol.toStringTagio-tseventEmittercommand-linevalidatecircularObservablefull-widthsymlinkslasthookformtrimStartagentESnextcollectionavajapaneselocationfastifyishelpersponyfillECMAScript 2021opensfiglettypesafetrimRightdirectoryes5equalityStreamawsfunctionalpersistentfindLastIndexmetadataargumentssharedarraybufferFunction.prototype.nameIteratormochareal-timespecs3symbolnodejscharacterformec2gdprArray.prototype.flattencreateglobalsesincludesvesttostringtagtestingreusevariablessetPrototypeOfcomparethroatlimitbusyserializermkdireventDispatcherglaciercheckhashcloudformationjsxwalkingsymlinkstreamsmulti-packageworkeres2018validsequenceremoveweakmaprequestcommanderdependenciesreact poseredactboundpnpm9dotenvrateargsstylefindupinstallerString.prototype.matchAlljavascriptargvextenddebugiterationscheme-validationES3String.prototype.trimshimfile cacheratelimitECMAScript 3intypedarrayscallbindcacheinstallposeECMAScript 6objdom-testing-libraryTypedArrayrmdirArrayBuffer#slicelintwordbreakCSSwrapstyleguidepicomatchjsonpathyupwriteajvhas-ownfullwidthchannelgenericsistanbulJSONdeepcloneprettytslibfastcopysidetoSorteddescriptorszeroeslintpluginjsparseenumerabletypeerrorform-validationefficientsafebundlingspeedchaifunctionintrinsicRFC-6455parsingpushdateimmerJSON-Schemawafmodules256.enveslint-plugincolorsthreetraverseworkflowexpressionclientreadablelinkinternalES2020environmentsescapeimportprogressassertssomeformattingdires-shimsemoji[[Prototype]]rgbdefaultaccessibilitycloudfrontcolorvalidationapollodiffES6mrulistenersenvironmentregularfunction.lengthconsumesyntaxObject.getPrototypeOffastclonevalueoncechromiuminternal slotprotoObservableseslintconfigfromArray.prototype.findLastIndexmodulehashelperweaksetutilitieshttptstimeObject.keysreact-hookswalkiteratordraggetoptpostcssES2016trimLeftES8ES2018arraybufferbufferstddcode pointsReflect.getPrototypeOfformatfixed-widthgroupastfpspreserve-symlinkscallboundnegative__proto__varsworkspace:*momentairbnbprocessexeoptimizerECMAScript 2023BigUint64ArraycjkUint8ClampedArrayObject.isvpcparentcontainscolumnasciiredux-toolkitkey parbatchnumberperformanceautoscalingnegative zeroreduxprivateloadbalancingstartfilepluginprotocol-buffersnamesvisual$.extendstringfolderflatMapReactiveXhardlinksschemadynamodbcloneiteratestringifierxdgdescriptioncompilerfast-deep-copyterminaldataviewequalcensorsuperagentstreamWebSocketinvariantlimitedarktypedataViewArray.prototype.flatlockfileInt16Arraydeep-clonefastArrayBuffer.prototype.slicedescriptorReactiveExtensionsschemewhatwgstatelessspawnbundlerlogparentsownpathimportexportpyyamlbeanstalkhigher-orderpopmotiondeterministicloggerkinesisbreakmoveECMAScript 2015CSSStyleDeclarationURLSearchParamses-shim APIzodmakekeytypetapeRegExp#flagsflattrimEndstringifyECMAScript 2016package managertyped arraylrulibphonenumberswftapeverystoragegatewayajaxcoreFloat32Arrayreadablestreamoptimistcall-boundFloat64ArraywordwraputilconverthasOwncloudsearchttybufferflagsmatchAllrdsqueuemime-dbecmascriptargumentdeep-copyuuidamazontypedarrayformscoverageprefixviewaccessorcolourArray.prototype.flatMaputilityArrayBufferuninstallSetpipematchesredirectECMAScript 2022codes
1.0.13

1 month ago

1.0.9

1 month ago

1.0.11

1 month ago

1.0.10

1 month ago

1.0.12

1 month ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago