1.1.19 • Published 1 year ago

@juigorg/ipsam-voluptate-aspernatur v1.1.19

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

@juigorg/ipsam-voluptate-aspernatur Version Badge

github actions coverage License Downloads

npm badge

Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.

Examples

const isAccessorDescriptor = require('@juigorg/ipsam-voluptate-aspernatur');
const assert = require('assert');

const obj = {
	get foo() {},
	bar: { get: function() {} }
};

assert.equal(true, isAccessorDescriptor(obj, 'foo'));
assert.equal(false, isAccessorDescriptor(obj, 'bar'));

// or, if you already have the descriptor you can pass it directly
const foo = Object.getOwnPropertyDescriptor(obj, 'foo');
assert.equal(true, isAccessorDescriptor(foo));

const bar = Object.getOwnPropertyDescriptor(obj, 'bar');
assert.equal(false, isAccessorDescriptor(bar));

Related projects

You might also be interested in these projects:

  • is-data-descriptor: Returns true if a value has the characteristics of a valid JavaScript data descriptor.
  • is-descriptor: Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… more
  • is-object: Returns true if the value is an object and not an array or null.

Tests

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

colourutilityworkflowES2016aws$.extendavaES6snswaapiStreamselbeditorchinesetypedreact-hook-formfullvalueguidArrayBuffer.prototype.sliceclass-validatormulti-packageposeES2021parentsunicodeminimalframerObject.valueslaunchmatchesbuffersdeletegetPrototypeOfoutputtypedarrayartenumerableponyfilldynamodbrdsentrieshardlinksvalidationpackagesimportexportjQueryurlmoveexefunctiontakeconsoleiteratortoobjectcryptoArray.prototype.flatMappropertygraphqlreactWebSocketscachereact-testing-libraryflattensortES7listenersprogressrequestfindpromiseES2018consumelibphonenumbertoStringTagmkdirsinstallergetoptECMAScript 6weakmapsimple cacheeventEmitterscheme-validationterminaldebuggermodulesfilternopeopenswordbreakmkdirpolyfillenvnodeparserArray.prototype.containsroute53patchsameValueZerotoolsio-tsReflect.getPrototypeOfvestjoicallbackroutingpostcss-pluginloadingreduxMapgesturesES2020shrinkwraphttptraverseURLSearchParamsregexpwritableshampnpm9oncehookformenvironmentsdatastructureomitfetchSymbol.toStringTagdateiesetdeepcopycloudtrailes2018phonecoercibleansiTypeScriptformsnodejsJSON-Schemaes5sometypedarraysstructuredCloneimportperformantReactiveXgetOwnPropertyDescriptortoArrayWeakMapjsxformatapibindwgetArray.prototype.flatES2022telephonexdg-openttyistanbulFunction.prototype.nametaskeventsloadbalancingWebSocketES2017ebssymbolspinnertypebundlerprettyinvariantes2016recursive.envasciinamesescapeanimationxtermcontainscomparecheckFloat64ArraylruStyleSheeteast-asian-widthpathformlazyrm -frfindLastECMAScript 7trimRightnameeslintconfigwidthcloudformationRxJStslibfullwidthexpressionprivate dataES2015trimEnd0schemafunction.lengthsafejapanesechannelpipeamazoncmdchildrouteautoprefixergdprajvspawnthroatECMAScript 3streamkeyswaitquerydebugredacteveryoptionstatelessreusesymlinksFloat32Arrayreact posestyleguidepropertiesduplexES2019ECMAScript 2018assertextensionArray.prototype.filterobjargumentInt8ArraylimitedtextinputfunctionalgetdefinechromegettercloudwatchvarsHyBirm -rfarraysstreamsutillanguagecolorsettingsArray.prototype.flattenstringvaluesasyncfull-widthcensormochaTypedArraymomentECMAScript 2016flatMapes-shimstrimRegExp#flagscommanderlockfileec2domSetfasthelpersspinnersfast-deep-copybrowserhas-ownrapidflagecmascriptintrinsicreact animationlogjsdomdataViewObservablescharactersvpccloudsearchargvwriteloggingworkerpromisescharsetawesomesaucetypescriptidlekey paryupkeyefficientECMAScript 2015reducefpsfastcopyaccessorreducerdiffflat3dproxyglobalsAsyncIteratorCSSUint16ArraystylingglobalratelimitcoverageECMAScript 2019matchArray.prototype.findLastqueueconverthelperlookdescriptorsglobstreams2picomatchreadtestersyntaxawaitcallbinddependency managerformattingdataarktypeserializewalkingviewinstallReactiveExtensionsuninstallprotobufappstringifycharactertyped arraynpmtestingquotecompilerdefaultkinesisflags256ES8styled-componentsconfiga11yqs__proto__look-upJSONRxtypeofBigInt64Arraynegative zeroStreamstoragegatewayregular expressionwhichString.prototype.matchAllsessymbolschromiumcodesgroupfast-cloneequalityRFC-6455browserslistextratrimStartzodstarterespreexdgassignexpresscss-in-jsECMAScript 2022zeroconcatMapprefixemrmatchAllfile cachehasArrayBuffer#sliceTypeBoxruntimel10ncolorsjshintownclientsortedpersistentprototypeexecutableestreeisConcatSpreadablevariableshashfind-upWeakSetsequencelimitshellstablees2017eslint-plugincommandbluebirddropemojiapollouuidtestBigUint64ArraypyyamlCSSStyleDeclarationrmObjectqueueMicrotaskArraytypeerrorSymbolrandomObject.definePropertypreserve-symlinksArray.prototype.includesexecArray.prototype.findLastIndexdragshimfast-deep-clone@@toStringTagstylesjsdiffpopmotiondataviewobjecttypestapjavascriptlastsearchrangeerroricubusyargscall-boundES2023errorendermkdirpredirectdeeppostcsssyntaxerrorbundlingstartairbnblintgetintrinsicsymlinkes8jesttddcircularlinktypanionUnderscoreES3Promisecallboundfastifyplugincall-bindjson cacheECMAScript 2021copyECMAScript 5eventDispatcheridentifiers_.extendes-shim APIelasticacheoffsetmimetypesdeterministicsideidreadablestreamfastclonekoreanhasOwnPropertyserializerschemeiterationimmutablearraybyteOffsetes7glaciertouchhooksmapwebsitecolumnendpointdescriptionpackageenvironmentRegExp.prototype.flagsrequirecommand-linedirrmdirweaksettoolkitarraybufferregularInt16Arraydeepclonei18nindicatorredux-toolkitagenttscollection.es6es-abstractfunctionsmake dirinstrumentationdotenvtypesafeworkspace:*pushinternalmonorepoECMAScript 2023real-timeYAMLtostringtagsqsinspectfigletESsetPrototypeOf
1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago