1.0.0 • Published 1 year ago

@bobyzgirlllnpm/ullam-quod-sed v1.0.0

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

@bobyzgirlllnpm/ullam-quod-sed 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('@bobyzgirlllnpm/ullam-quod-sed');

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

IteratorMicrosoftgdprfromes7scheme-validationtypanionmodulestslibviewnativestreamcss nestingextendextraarktypetypedarraysYAMLargparseconsole256channelUint8ClampedArraycircularproptsfunctionsObject.valuesObject.getPrototypeOfArrayStreamschema.envsymbolsautoscalingES2015listenersassertforEachrobustBigInt64ArrayisConcatSpreadableelectroncommanderlivel10nnodejsvpcflagES2018structuredCloneclii18nregexpredux-toolkitgraphqlregular expressionscolumnstoolkitfindLastdayjstoobjectdataviewmkdirpES2023unicodelanguagematchAllpushECMAScript 2023es-abstractslicetapediffcommand-lineapiES5RegExp#flagscall-bounddependenciesfigletpromisefullcjkObservablepruneObject.entriesindicatorcryptoES3Mapsortimmerawaitsqses-shim APIpropertyArray.prototype.filteres2018postcss-plugincallseschromejestbuffercolorcolumnrouteless cssloadingwritegettervalidationtimeshrinkwrapmkdirsinkeyses2015textstatetoStringTagdirthroatbrowserexpressresolvejwtrandomdom-testing-librarycss-in-jswafarraybufferdefinePropertyjapaneseECMAScript 6callbackmixinsglacierArrayBuffer.prototype.slicedirectoryparserdeepcloneECMAScript 5assertsECMAScript 2017visualvalidmatchesRxFloat32ArrayjsdiffBigUint64Arraytestertypesafejsarrayreadablecensoroncestdlibeventseslintpluginregular expressionregularless compilerbootstrap lessWeakMapgetPrototypeOfcontainsdeep-cloneArray.prototype.findLastespreeslotfunctionstringifierregexredactmovetypes_.extendStyleSheetfast-copyfstelephoneassertionlimitreadfastsideeventEmitterrdstypecoercibleapollocorewalkcreatequerywebbusycharacterpathconfigquerystringtestingHyBidatastructurecallboundtermstylingfilemomentbindfastifylintomiteslintconfiglocationlengthdebuggerbundlerwritablecode pointssetterarrayspnpm9dataViewreusegradients css3colourcompile lessform-validationvalidatefast-deep-clone$.extendPromise[[Prototype]]jsonmulti-packageObject.fromEntriesratelimitreduceelasticacheUint8Arraystyled-componentstypedrmclassnamesetformattingopens3groupByformatquotechromiumes2017find-upfetchsimpledbArray.prototype.includesstoragegatewaysharedupwalkingECMAScript 2018tostringtagless.jsyupstarterentriesdotenvbyteLengthcloudtrailbcryptobjflagsstableflatMapcloudfrontsafesyntaxphonebreaksetPrototypeOfsymlinkpolyfillpatchfast-deep-copyspecwhatwgjsonpathfixed-widthjasmineArray.prototype.flattendescriptorsdeleteES6recursivees2016deepauthenticationsymbolprotobufESratecurlJSONflatconfigurableaccessibilitywatchworkflowasyncrangeerrores-shimsdependency managerPushes6tc39consumesetImmediatecodeselbmonorepopreprocessorTypedArrayFloat64ArrayObservableslibphonenumbershamhookstrimStartexpressionminimalparentsec2yamltypescriptRFC-6455connectvariablesgetmobileenvironmentemojiwordwrapdateinstalltapparsebyteOffsetlruES7String.prototype.trimgetOwnPropertyDescriptorInt8ArrayargumentlogzodinspectswfECMAScript 2019takeerrorCSSserializerTypeScriptcommandReflect.getPrototypeOfendpointutilitiesserializationprivate datatoolsimmutablereplayECMAScript 7iamhasOwnPropertybytesortedbeanstalkeslint-plugingetintrinsicSymbol.toStringTagsameValueZeroconcatMapnamesdomttyeslintidmkdirzeroObject.isawsreal-timeoffsetweakmapesinternalqueueObject.assignlazynopespinnerprotoequality-0airbnbAsyncIteratorauthkeyreadablestreamawesomesauceECMAScript 3collectionnpmloggingfullwidthlimitedcloudsearchemrbanner__proto__workerreactajvpostcssnegativerm -rfgenericsproxyJSON-Schemacloudwatchbuffersinputoptimistclassestypeerrornamefile systemArray.prototype.flatMapidleinferenceworkspace:*emitthrottlecomparecss lesswordbreak
1.0.0

1 year ago