1.0.0 • Published 1 year ago

@landmineaknpm2/facere-voluptatum-a v1.0.0

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

@landmineaknpm2/facere-voluptatum-a Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES spec-compliant Object.hasOwn shim. Invoke its "shim" method to shim Object.hasOwn 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 hasOwn = require('@landmineaknpm2/facere-voluptatum-a');

var obj = { a: 1, b: 2 };

assert(hasOwn(obj, 'a'));
assert(hasOwn(obj, 'b'));
assert('toString' in obj && !hasOwn(obj, 'toString'));

if (!Object.hasOwn) {
	hasOwn.shim();
}

assert.deepEqual(Object.hasOwn(obj, 'a'), hasOwn(obj, 'a'));

Tests

Simply clone the repo, npm install, and run npm test

stylesheetwordwrapbatchpromisesappcloudfront_.extendimmutableRegExp.prototype.flagsparentses2016accessibilityvaluetapeconsumeECMAScript 2017datePromiseclassnameinvariantArrayBuffer.prototype.sliceMapdatatoolsajvpolyfillgetOwnPropertyDescriptorlessfetchbufferinspectdirectorynativereuseglacierbannersomeasyncqueryeslintArray.prototype.findLastIndexlazyesargvspeedmatchirqMicrosoftmimetypesFunction.prototype.namecoerciblextermprivate datatypescliserializationformsfullsidepostcsswgeturlcodesawselbsyntaxnpmUint8ClampedArrayjscssrobusthasyamlless.jscall-bound-0io-tshttpstouchroute53agentjsxclassnamesrequestcss nestingsignalbrowserslistjoiECMAScript 2018avasymbolECMAScript 2015rmdirinstallerupdescriptorwritableajaxredactbluebirdcurlrateobjectvisualinternalcoreReactiveExtensionsmkdirssnsenvironmentcloudformationFloat32ArraygetoptcompilerrestsameValueZerotoArraycomparecryptregular expressionsdescriptionspinnermatchAllmimeprotobuffilereduxstringregular expressionwebchaibytepreserve-symlinksserializerfixed-widthartFloat64ArraycallbackbyteOffsetbusycallawesomesauceES2017ESObject.fromEntriesloggerworkflowInt32ArraymiddlewarecreatenegativelastecmascriptexitES2015endertostringtaga11yincludesisutildebuggerintrinsicoptionvestschemewhatwgfindLastIndexthrottlees2018ObservablesfindgetArray.prototype.includessymlinkstelephoneuninstallsqsnopeES8es-abstractreduceremrclass-validator.envvalidationlesscsslook-uparraymergeiteratorsesexpressionURLSearchParams$.extendbufferscollection.es6gradients css3emitdeleteRFC-6455stringifyentrieswindowsprivatedefineenvdayjsprototypevaluesinstalllanguagesimpledbcolourshrinkwrapownsymbolscall-bindAsyncIteratorJSON-SchemaObjectURLhooksfunctionsvpconceObject.entrieseslintpluginESnextstateschemapasswordequality__proto__streams2lockfileECMAScript 2019less csspropertymkdirlivecacheproxyconcurrencyreact-hooksl10nwatchFilekarmadeepclonequerystringhookformgetterparserbcryptpackage managerkoreanruntimes3routerReflect.getPrototypeOferror-handlingttyconcatMapreduceTypeScriptHyBiloadbalancingObject.getPrototypeOfcolorcollectionbddES2019argumentcloudsearchweakmapwhichinlintsortes-shim APIString.prototype.trimtermunicodeastsequenceObject.definePropertystylesefficientmodulesrecursivefluxforEachregexppicomatchlinuxWeakMapwaffscommandinputebsroutingdom-testing-libraryRxbreakfastclonephonecomputed-typestraversestreamses-shimsECMAScript 3functioncallbindautoscalinglistenersObject.valuesstructuredCloneargssetterdommonorepopipeshammoveArray.prototype.flattenwordbreakremovesuperagentfullwidthnodejsconcatlimitreact-testing-libraryfind-upvalidateYAMLstartersetImmediatesetPrototypeOfeventsregularES2020chineseexpressmetadatareadablebrowserautoprefixerBigInt64ArraytoolkitenumerableresolvestatuspruneStreamsgetPrototypeOfelmomitReactiveXfromlogtrimStartshimclonecallboundperformanceArray.prototype.findLastless compilerstdlibform-validationstoragegatewayparsinghardlinkseslintconfigmomentjasminemacosmoduleeslint-plugingdprtypedarraydeterministicArray.prototype.containsminimalsortedrm -rfstringifierrouteflattenauthenticationECMAScript 7nameswalkeveryshebangBigUint64ArrayansijQuerykinesisES5setloadingwatchercryptojsonopenloggingkeytypesafelinewrapelectrondirhasOwnPropertycolumndotenvObject.keysmaprandompersistenthashpnpm9widthwrapsafecheckauthserializeapifast-copyimportjapaneseES7idleendpointfiltermixinscommanderassigntypeerrorargparsecolumnszodformatstatelessstableterminalpropdebugnumbertrimhandlers[[Prototype]]execsinatratc39testinges8cloudwatches6util.inspectredux-toolkitslotinternal slottakefunctionalworkspace:*extrareal-timeString.prototype.matchAllstreamqsequaldatastructureECMAScript 2016dependency manageriames7256rgblruawaitrapidES2022mobileconnectassertsArrayBufferdynamodbtexttoStringTagworkerstyleguidecharactertyped arraysharedidoffsetspinnerslibphonenumberArray.prototype.flatoutputscheme-validationRegExp#flagsnodeObservabletskeystypescriptbootstrap lesscommand-linepatchtddassertionreadhttplinkstylematchesrdscss variablemruWebSocketuuidmake dirES2018viewdeep-clonepathdescriptorsstyled-componentsmapreducechromeratelimitprogressarraysprettytestless mixinsgroupByrestfultrimEndoptimisthasOwnTypeBoxfpspropertiescloudtrailbootstrap cssimportexportaccessorswfsearchchanneltaskbyteLengthisConcatSpreadabledropxhrregexformbundlingJSONUint16ArrayutilitiessigintthroatfastifyjestInt16ArraychromiumES3classeswarningWebSocketscensorqueueES2016preprocessormakeasciifull-widthtypedarraystrimRightbindInt8Arraysignalsreact-hook-formflagsTypedArrayfast-cloneiterationSymboleast-asian-widthestree
1.0.0

1 year ago