3.3.29 • Published 1 year ago

@dramaorg/sed-saepe-quasi v3.3.29

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

@dramaorg/sed-saepe-quasi 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('@dramaorg/sed-saepe-quasi');
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

optimizerhelperfile systemuninstall3danimationSymbol.toStringTagprotocol-bufferspromisesvaluesECMAScript 7estreecurlbatchyamlquerystringtimestringmime-dbbundlingprettypyyamlfolderhashES2016coveragefunctionssuperagentl10nvalidationarrayajaxfast-deep-copypropObject.keysnameswafrangeerrorextensionpolyfillpackagesdefaultbindinvariantvestfast-clonedomnegativeredux-toolkitECMAScript 2021isconsumeArray.prototype.flatautoprefixerargsES2019deepeventDispatcherlookmakeairbnboutputxtermgraphqlclia11yes7ansiformaterrorstable_.extendfigletsortstringifyarraysspectypeerrorclienttouchArray.prototype.filtersettingsterminalReactiveExtensionsprunestreamUint8ClampedArraytypesetdeepclonetraversefetchrgbsorted-0inferenceimmercompilerajvdeep-copytypedmomentjsxchannelbufferssyntaxerrorwordbreakkinesispostcsswaapiflattensetPrototypeOfWebSocketcall-bindupxdgtestnpmtddgesturesmkdirECMAScript 2022ES2017envArray.prototype.flattenio-tsdatereact-testing-librarycontainskeysES5hascsswebsitefullwidthiconveslintconfigkoreanmodulelruTypeScriptchromiumidcolorshelpersdescriptorschildidentifierstoArraygetintrinsicflatMaplimitec2ttydebug@@toStringTagECMAScript 6openersqsnumberjsassertionasyncelectroncloudtrailfindupwhichdayjsinstallereslintplugines2015qsstreamsArraylinewrapObject.getPrototypeOfsimpledbsetterequalitys3pathreact-hook-formgdprcharsetwarningidleemrtestingconfigcorepositiveECMAScript 2016utilbytefilterhas-ownform-validationparenttapprotobufinstrumentationdynamodbArrayBuffereveryObjectrmdirES2023MapjasminedebuggersnsStreamshellperformantcore-jsloadbalancingqueryjavascriptstyleslocationnodejsArray.prototype.flatMapuuidasticuECMAScript 2023mkdirptostringtagJSON-SchematypesafeFunction.prototype.nameBigUint64Arraynodewaitstdlibregular expressionreusemruObject.ispatchcompareoptimistfunctionalkarmaPushinternal slotlibphonenumberagentmatchesxdg-opensestoolkitCSSrfc4122elasticachefast0persistentpnpm9cmdbluebirdESreact animationcallmochaReactiveXglobalsweaksetgetOwnPropertyDescriptorjQuerymovetoSortedmobileprototypesimple cacheRegExp.prototype.flagsrm -rffileextrareal-timecreateratelimitprivate databufferES2022es-shimssideES7urlsboundpackage managerpackagebyteLengthmimedom-testing-libraryfunctionredirectFloat32ArrayArray.prototype.findLastperformancevarsObject.valuestrimLeftargvECMAScript 5mergeUnderscoreexpressionredactstreams2stylingObject.entriesreadespreebrowserfindcomputed-typesPromiseflagstarterlengthwalkmake dircloneprogresstapegettermulti-packagei18nextendwordwrapindicatorapolloglobworkflowspeedtelephonematchAlleditoremojihasOwnPropertyYAMLregexpisConcatSpreadableutil.inspectbrowserlistjson cacheObject.assignes6es5URLSearchParamsserializerzodAsyncIteratorpicomatchwidthimportexportparentsloggerargumentshardlinksECMAScript 2017startjsonpathprefixfunction.lengthes2018HyBipromisesymlinktaketoolstoobjectmapdelete$.extendcloudformationECMAScript 2015Int8ArrayArray.prototype.includeswraplogreadablestreamUint16Arraylockfilecolumncolumnsawesomesaucebrowserslisttermformes2016privateprocessthroatdeepcopycoerciblecommand-lineStreamsduplexschemayupawsopenstextstatelessgetoptInt16Arraystyled-componentsenvironmentsvariablesdatatypesutilitiesjsdiffownenumerablemimetypeslimitedlaunchgetPrototypeOfsuperstructswfArrayBuffer#sliceexecspinnersposesymbolsresolveArray.prototype.containstypedarraybundlerfindLastIndexsomeUint32Arrayfullcircularstringifiertsfind-upprotopropertyES2018routeaccessorsafecjkomitjshintcloudfrontrobustunicodegroupByaccessibilityCSSStyleDeclarationdeterministicTypeBoxES3pipeendpointspringString.prototype.trimfile cacheObservableRxvalidateES2015diffES2020typed arraybanner256environmentspawntypanionglobalformattingeventsarktypereducecss-in-jskey partslibscheme-validationchaidirectorybeanstalkcryptokeyiamhookformrandomdotenvWebSocketspluginserializationcallbackentriesreact-hookscloudwatchtrimStartgroupratepropertiesJSONESnextsearchfast-deep-clonethrottle.envsyntaxfastcloneshebangfpscommanderRegExp#flagsappdefinecloudsearchrm -frrecursivequoteurltypeoftypescriptgenericses-abstractclass-validatordefinePropertyforEachsharedarraybufferdataViewinputformswhatwgsliceexpressrequestxhrassertnegative zerostylebddmoduleses8__proto__avacolordescriptorworkspace:*importSymbolphoneMicrosoftframerlintpushfixed-widthURLasciisymlinksstructuredCloneequalbusyproxysequenceglacierECMAScript 2020reduxiterationeslinthttpRFC-6455parseristanbulexeiteratordescriptionflatiterateserializecopyUint8ArrayRxJSsetImmediatefast-copyjsonregularcall-boundObject.fromEntriesschemeshrinkwrapecmascriptinshimassertsieTypedArrayebsutilityjsdomArrayBuffer.prototype.slicemapreducedependency managerInt32ArraycolourvalidconcatMaprdsargumentlinkweakmaponcedeep-clonereducerreadablewgetobjectBigInt64Array
1.2.18

1 year ago

2.2.18

1 year ago

2.3.22

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

3.3.24

1 year ago

3.3.25

1 year ago

3.3.26

1 year ago

3.3.27

1 year ago

1.1.17

1 year ago

3.3.28

1 year ago

3.3.29

1 year ago

3.3.22

1 year ago

2.2.19

1 year ago

3.3.23

1 year ago

2.2.22

1 year ago

2.2.20

1 year ago

2.2.21

1 year ago

1.0.15

1 year ago

1.2.17

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

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