1.0.0 • Published 15 days ago

@rabiepenpm/in-voluptate-praesentium v1.0.0

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

@rabiepenpm/in-voluptate-praesentium 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('@rabiepenpm/in-voluptate-praesentium');

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

String.prototype.matchAllsigintdescriptorregexFunction.prototype.nameextendopenerparentObject.assignfast-deep-clonespawnmatchAlllaunchprotocol-bufferslazywgetserializationmake dirobjenvES2018utilitiestermcore-jsdeepclonelinux256typedarraystructuredCloneAsyncIteratorcolourpnpm9animationenumerableTypedArrayjsdiffopensprivate datarm -frrandomless.jsgetoptvisualjoijesttesterhandlersemitArray.prototype.flatnegativeramdaUint32ArraystreamarraybuffertostringtagflatMapvalidatorcrypttypesafeimportObject.keysl10nReactiveXnamespreprocessorHyBiexetoolshookformtddrmdirlimitmochaTypeBoxIteratorbusytakejson-schema-validatorupnamedefinePropertyconnecteventEmittergetintrinsictypeerrorpackagepropertieslengthtrimEndjsonpathecmascriptkarmaregularqueryincludesvalidtraversefetchflagutilityvariables in cssgdprECMAScript 6xsspostcss-pluginwalkBigUint64ArrayphoneparentsarktypeUint8Arraymatchescryptoyamlequalstatelessquerystringawaitcopyhookshigher-ordercharacterpatcharraysArrayBuffer#slicerobusturlInt8ArrayES2023quotestablevalidationarthasconcatdiroperating-systemmobilefullhasOwnform-validationvargraphqlsanitizationcircularArray.prototype.containses2018deterministictoStringTagpushexecutableoffsetflagsArray.prototype.findLastIndexjsonschemaescapeappdirectorycollectionES5authjscreateRxurlsprogressmimetypespipeeslintconfigcallcommand-linesigtermlintECMAScript 3prefixinternalpluginlibphonenumberES8stylestrimes7koreanwritepackage managerthrottlegrouprgbtouchnested csspromiselimitedthreedeep-clone@@toStringTagjavascriptdataViewreact posestyled-componentsless compilerposeomitbrowserdependenciesutil.inspectterminalcurlinterruptsnumbertimees2016call-bindvestReflect.getPrototypeOfECMAScript 2021Object.valuesfunctionreal-timeCSSemojiiterateframersymlinksdescriptiongettershimasciilistenerscompilercollection.es6specconsumeWeakMapbundlerbrowserslisttaskArray.prototype.includesbyteLengthhttptestefficienttoolkitcall-boundelectronreduxmime-dbgradients cssdatesameValueZeropolyfillunicodecoreformatscheme-validationarrayFloat32ArraytypanionopencolorintrinsicsetObject.getPrototypeOfawesomesauceprettyoptimistcommanderjasminehelpersjsonpackagesargparsePushArrayBufferparserECMAScript 5fromsuperagentstringifyhttpswhatwgbcryptsortinputwidthmiddlewaredescriptorsirqfigletexpressmodulesObject.fromEntriesprotosymbolsgetOwnPropertyDescriptorauthenticationdatapositiveratelimitsanitizemkdirprmwaapisignalsfunctionspopmotionframeworkio-tsspeedargsArraygetPrototypeOfwebmapcolorsi18ntc39es8startcmdidcompile lessfindupmoduleStreamsObservabledragworkspace:*ajvextraapijQueryfastargumentslockfileeswaitObject.definePropertysharedBigInt64ArrayfsReactiveExtensionsRxJSreusetranspilerreactrapideslint-plugindeepargumentECMAScript 7WebSocketharmonyautoprefixerwalkingwatchingrequiresuperstructchaibddECMAScript 2023exitqses-shimskeyES2021stringsharedarraybuffergetstylingpromisesTypeScriptflatstreams2queueMicrotaskuser-streamslookjsxvalidateclass-validatorfantasy-landmrusafedom-testing-librarychromiumfastifyfunctionalpicomatchregular expressionxhrstatusexpressionnodejsfull-widthcallbackserializeerrorstylesheetcallboundES6monoreposettereslintplugineast-asian-widthObjectmomentsyntaxerrorString.prototype.triminvariantdataviewArray.prototype.flatMapmulti-packagebytemacosECMAScript 2017fastcopycontainsregexpshebangform-0assertiontranspileentrieseventDispatcherlesssearchkeysinternal slotestreereadablestreamviewes5definetapebootstrap cssboundguidaccessora11yavareducerthroatenderinferenceremovestreamsreadenvironmentpyyaml6to5error-handlingcss nestinggradients css3mixinsbabelargvvariablesmove
1.0.0

15 days ago