1.0.0 • Published 1 year ago

@devtea2025/a-blanditiis-iusto-accusantium v1.0.0

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

@devtea2025/a-blanditiis-iusto-accusantium 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('@devtea2025/a-blanditiis-iusto-accusantium');

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

stylestaskoptionsearchfpsglobalenvironmentenumerablemaphttpcloudsearchECMAScript 2018HyBiawesomesauceframeworkcall-bindnpmpromisesinternal slotgetoptfast-clonerm -fraccessibilitycompilerserializelookconcatMaptraversemobiletesterObject.fromEntriesnested csswordbreakopensio-tscommand-linecryptobjjsdiffInt8ArrayimmutablejavascriptprunefindLastArray.prototype.flattenjshintdotenvfunctionsmake dirwrapcompile lessagentMicrosoftconcurrencymomenthashES2019exit-coderegularESnextconfigconcaturlsaccessorhas-ownUint8ClampedArrayimportexportwalktrimRightfindup-0es2017minimalflattenfind-uppackage.jsonmruyamlescapetrimLeftspawnsigintcolorirqtypescriptidclifullfseventstscall-boundform-validationfunctionURLSearchParamslanguageutilitieswhichintrinsicendpointtelephonereadablestreamprettyArrayBuffer.prototype.slicemoduleroute53ecmascriptrequestlimitdeepcopyponyfillcss variableECMAScript 2023spinnergdprcensoruuidregular expressionssymlinkinstalldirectoryprivatemochaES2017setImmediatesymbolcharacteres5fast-copyelasticacheunicodephonewatchFileObject.definePropertytypedarraystrimStartECMAScript 2020superstructfindopenerequalArrayautoscalingairbnbpipegradients css3macoselbstdlibtddfunctionalless.jssigtermsignalsES2021namestypedarraymatchindicatormovegetOwnPropertyDescriptorlruECMAScript 2021dayjsdescriptorcharacterschromiumloggerqueueECMAScript 2019bufferregular expressionwatchcircularlogReactiveXruntimecallboundutilRFC-6455commanderInt16Arrayes-shim APIbusys3sharedparseSetnodeUnderscorespecvpcsetPrototypeOfwebsiterecursivewalkingqsargsrmdirparsermatchAlldebuggerjsxObservableserializationschemareadablelinewrapreadvalidtimeautoprefixershebanges8requirecreateTypeBoxclassnamecore-jscopybundlersignalcolumnsECMAScript 2022Uint32ArrayeditorloggingmatchescacherestlintebsjQueryquerystring
1.0.0

1 year ago