1.0.0 • Published 16 days ago

@a-2-c-2-anpm/voluptas-fugiat-fugit v1.0.0

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

@a-2-c-2-anpm/voluptas-fugiat-fugit 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('@a-2-c-2-anpm/voluptas-fugiat-fugit');

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

jasminetranspilerFunction.prototype.nameconsumeobjectpostcss-pluginatomdeep-copyxmlstringifierendpointeventEmitterargvArrayBuffer#slicepushassertsFloat32ArrayhardlinksformjsdiffsetPrototypeOfterminalextensionquoteTypeScripttrimRight$.extendtimeastdependencieskarmaECMAScript 2021ECMAScript 2016vestdataViewsortstyled-componentsgetoptredux-toolkitwriteespreetouches8Object.keysUint8ClampedArraydirECMAScript 2019managerES6textrgbStreams256WebSocketsstringmkdirtypeerrorroute53getterserializationcompilerbinaryflagfastapiWeakSetttyiedayjslook-upawsmomentfindLastES8utilitiesmonorepomimetypesregexgitignoreguidchaikoreanstoragegatewayprototypeutilArray.prototype.flatMapwarningbyteinstallereveryBigUint64Arrayschemerobustloggercorecharacterstoolsstyleserrorhasrm -frcss-in-jsregular expressionslanguagepatchbannerjestnativethrottleperformanceinternal slotcreatetc39.gitignorewaitReactiveXECMAScript 2017inspectpluginkeyemitarktypeWeakMapPushconcurrencyemrfile systemrmdirstatelessStreamfindequalityeast-asian-widthBigInt64ArraySetinvariantassignoptimizerYAMLpostcsshttpObject.fromEntrieslengthHyBiwidthdotenvfunctionalCSSStyleDeclarationstringifyesclifunctionES2020computed-typesRegExp#flagssometakesetImmediateform-validationlinewrapregular expressionoutputcallbindomitlintlimitspinnersmkdirpjsstreams2toSortedeslintcolumntestingnegativeprivatehigher-orderroutingunicodefind-upec2ECMAScript 2020ebsObject.valuesfilterfull-widthfpsspringSymbol.toStringTagmatchAllmake dirobjdeterministices2017clonethroatJSON-Schemadeep-clonechildObject.assignes5libphonenumbercomparetapvisualsuperstructavalasttestutil.inspectnodeparsingcallstdlibURLyamlserializeraccessibilitycolourstyletypesafeclass-validatorString.prototype.trimregularapollofindupshellmulti-packagebeanstalkreact animationES2022amazonworkerqueryinstalltypesbreaktoobjectcoercibleStyleSheetsymlinkfast-copynpmignoreclienttypednopeenumerablestructuredClonelogflatMapasyncObservablecircularflatdirectorybyteOffsettdddomdependency managerArray.prototype.containsenderfastifyelbemojiTypedArraybatchdateparserquerystringsesdescriptorrouteinternalpicomatchES2021specES2017io-tsslicesyntaxerroreventsdebuggerlocalfastcopyremoveposebuffertransformsharedarraybuffercloudsearcheslint-plugines-shimsenvironmentbinddeepcopyfast-deep-copyObjectautoscalingcommand-linethreevaluecallbackgroupsimpledbECMAScript 2018configurabletsxtermruntimepropreadableUint32ArraysharedReactiveExtensionsponyfillhasOwnloadbalancingArray.prototype.filtertrimmkdirsisredactidcjklimitedAsyncIteratorflattenjshintwgetkinesisvpcglobelasticachelazycontainsonceforEach
1.0.0

16 days ago