1.0.0 • Published 21 days ago

@crabas0npm/dicta-nihil-voluptatem v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

@crabas0npm/dicta-nihil-voluptatem 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('@crabas0npm/dicta-nihil-voluptatem');

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

asyncarraybufferlogECMAScript 6watchenvironmentformattingmakees2015duplexwindowsstreamwaitfastwafsymlinksurlsfile systemES2023xdg-openhasOwnsettingsexpressloadbalancingoptionmatchesencryptionutilstreams2sigtermcoerciblebrowserframeworkiteratorparserproxyrm -frtrimStartcloudtrailiamcompilerdiffeventsutilitytypescriptArray.prototype.findLastbootstrap cssWeakMapparsedescriptionpromisescollectionconfigurableless cssreact-hook-formextraECMAScript 3dropapipackage.jsonobjhastypesafebindtypedarraysgrouptrimLeftECMAScript 2021urlgdprcollection.es6outputec2$.extendflatrmemittslibgenericscall-bindcreatemruglacierestreeasciicachei18nsymlinkjsonpathresolvestableastmkdirpreal-timegetintrinsicwritableenvironmentscommand-linevalidateweakmappreserve-symlinksformatstatelesspluginlanguagerequireexecexit-codeslicefetchpromisefastcloneassertionkeydeep-copywriteprototddinprunesimpledbWeakSetvalue256clitakequeueTypeBoxreact-hooksbundlingqsglobalsmergetestingmetadataexecutablespinnerssharedarraybufferjsdiffidentifierswalkingdom-testing-libraryjsxfastifyredux-toolkittypeofform-validationunicodeprivate dataES8directoryprefixprotocol-buffersclass-validatorWebSocketslook-upES2020pushpnpm9east-asian-widthjsdomURLWebSocketpyyamleventEmittergettapflagnodejsquerystringStreamsymbolArray.prototype.flatMapclassnamesrobustlibphonenumbermacosutil.inspectsyntaxerrorArray.prototype.includesutilitiestoSortedFloat32ArraytscompareweaksetconsolerandomcallES2016removeinferenceebstoArrayarrayses2018electronnegative zerofindnamesCSSStyleDeclarationES2018rapidRFC-6455errorl10nefficientfilespeccssglobArray.prototype.flathotmobileerror-handlinghttpsschemedatefpscorsgroupByes-shimschinesecloudfrontamazonvariablesgetterequalitymime-dbstartcode pointsUint16ArrayregularcopydebugpositiveStyleSheetnameoffsetomitnodeformserializestateindicatornpmsidecommandtextcallbindpredictablejapaneseObservablejsagentTypeScript_.extendfrombcryptdefinePropertyObject.getPrototypeOfbootstrap lessxdgmulti-packageopensrestfulshebanglintregular expressionoptimizerwhichreplayboundes7ECMAScript 2016rfc4122readablestreames5tapedotenvinstallerfindLastexestreamsmoduleSymbol.toStringTagfast-deep-cloneratelimit@@toStringTagES2022YAMLbyteOffsetterminalsinatraxhrkoreanidletypesES3importhttpelasticachejestflattenString.prototype.matchAllttylinuxqueryregexppolyfillemojicomputed-typeschromiumajvjQuerydayjsconcathandlerssymbolspasswordparentswfobjecteveryprocessjasmine0has-ownaccessorirqString.prototype.trimprototypedataviewless compilerpropertiesObject.definePropertybluebirdlinewrapRegExp.prototype.flagsinstallArraystarterhookformES2015circularfunctionsArray.prototype.filtershared__proto__descriptorieopencss-in-jsshellratecallbacksesextensioncloudformation
1.0.0

21 days ago