2.8.70 • Published 1 year ago

@zitterorg/delectus-nisi-impedit v2.8.70

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

@zitterorg/delectus-nisi-impedit 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('@zitterorg/delectus-nisi-impedit');
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

compilersyntaxerrorstatelessintrinsictermargumentprototypewafSetdependenciesES2022Streamgraphql-clientgenericspatchArray.prototype.containsprefixlook-upFloat32ArrayownArray.prototype.includesstyleguideopenjsdomsettypeerrorreadablefromnameprotoestreeloggingObject.istddObservablelaunchECMAScript 7gdprnumbertslibnpmajvutileditorchildsafemetadataprocessxtermgetPrototypeOfES2021asciipathObject.definePropertychecktrimRightwhatwgECMAScript 2021installfastclonecryptosharedswfhas-owncoverageforEachwriteec2elbInt16ArraysameValueZeromomentJSON-SchemaoptionglobalconverthookformposepicomatchthreerequirechaiformattinglinewrapstylingpositivesqsHyBiurlshamtypedstringifyPushhigher-ordermake diriteratorserializationObject.entriesoptimistlockfileES2016javascriptnodejspromisescommand-lineprogressawsisConcatSpreadablenegative zeropostcss-plugininternalsetPrototypeOfspinnersperformantespreecloudwatchansidirectoryeveryratelimit_.extendObject.fromEntriesprivateenvironmentclass-validatorrecursivevpcaccessoridentifiersdebugArray.prototype.findLastIndexURLlengthpromiseviewclitrimLefthelpersstoragegatewayes2015beanstalkdescriptorCSSStyleDeclarationpackagesflattenworkerArray.prototype.findLastReflect.getPrototypeOftypedarraysphonecallbackbluebirdstartsuperagentgesturesexecutableargvmoveopenerdeterministics3defaultECMAScript 5regexpRxlimitedsequenceperformanceArray.prototype.flatgetterdayjsArrayenviconvdependency manageruuidpopmotionregular expressionsString.prototype.trimslicevaluesvalidationjshintRxJSroute53readglobBigUint64Arrayglobalshashreact animationvestform-validationstdlibparentwhichES6breakpruneSymbol.toStringTagtypeofpostcssinspectUnderscoreequalES3consolebinaryrfc4122private dataECMAScript 3jssearchformescapedragsnshttpstylesyamlrdsRegExp.prototype.flagslooktapmulti-packagecharsetregexrm -frtelephonetestloadingstructuredCloneWebSocketreducepluginbyteformsuninstallworkflowlruecmascriptURLSearchParamsinternal slotzxcmdarraybufferpropertypushutilitiesrmdirObject.keysmkdirpttyCSSonceentriesproxyFloat64ArraytextequalityjQueryspeedyupshrinkwrappnpm9hardlinksi18nchannelbindObject.getPrototypeOfnativechromiumexees5symlinksconcatchinesefast-clonequeueMicrotaskbrowserredactcircularjsonpathaccessibilityio-tsiterationmonoreporeact-testing-librarynamesthrottleeventDispatcherspringbannerdom-testing-libraryES2018protocol-buffersreact poseelectronmobiledeepcopydeep-copypackageemitinstrumentationstyled-componentsdotenvwidthgettrimEndcore-jsrmStyleSheetfindLastIndexkeyvalueanimationjasmineeslintconfigassertlazyoptimizerECMAScript 6testingsortredirectdescriptioncurlwarning0hasOwnPropertytraversereusewaapicodessettingsES2017256Array.prototype.filterastponyfillESfast-deep-copyflatMapconsumefunction.lengthcall-boundTypeBoxstreamSymbolstarterquerystringfindLasttoArraygetOwnPropertyDescriptorobjimmerkeys3demojimapparsingObjectES2020bddweakmapes2017requestlogqueuesesInt8ArraycolumndataviewopensdiffasyncECMAScript 2020airbnbtc39mimetypesoutputmodulesstreamsfindformatjoicoercibletouchefficientcallbinddynamodbelasticache-0typessuperstructmoduleclientarktypeBigInt64ArraylibphonenumberinbyteOffsetawesomesauceslotimportcolourendpointfast-deep-clonecallwalkingextendreal-timefunctionsUint16ArrayWeakMapduplexassertskinesisnodeECMAScript 2015ES2019filtercommandregularexecfiletesterreduxtrimarraysgetintrinsicloggerutil.inspectArrayBuffermime-dbwaitReactiveXfetchautoscaling[[Prototype]]toStringTagawaitESnextparseendercollectionfastcopyflagsinferencecallboundgraphqlpreserve-symlinksshimreact-hookscreateidlepipedefineiterate$.extendweaksetcollection.es6JSONvalidatedroplocationmkdirfile systemschemabinariesl10ntimea11yinvariantcolorlocalcloudformationqsfastifyajaxECMAScript 2022execvisualvariablesappcommanderbrowserslistcloudsearchECMAScript 2018workspace:*figletpackage.jsonassertionYAMLdatefind-uprobustsimpledbtakeexecuteexpressionthroattapefastfull-widthjsdiffupchromeextensionTypedArrayresolvefsxhrbusyconfigmergecall-bindavavarsebscloneartwalkECMAScript 2016shellsyntaxlistenersfast-copy
2.8.70

1 year ago

2.7.69

1 year ago

2.7.68

1 year ago

2.7.70

1 year ago

2.7.67

1 year ago

2.7.66

1 year ago

2.7.65

1 year ago

2.7.64

1 year ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.64

1 year ago

2.6.59

1 year ago

2.6.60

1 year ago

2.6.61

1 year ago

2.5.59

1 year ago

2.5.58

1 year ago

1.3.24

1 year ago

1.3.25

1 year ago

2.5.56

1 year ago

2.5.57

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.3.30

1 year ago

1.3.35

1 year ago

1.3.36

1 year ago

2.4.56

1 year ago

1.4.48

1 year ago

1.3.33

1 year ago

1.4.47

1 year ago

1.3.34

1 year ago

1.3.39

1 year ago

1.4.49

1 year ago

1.3.37

1 year ago

1.3.38

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.4.53

1 year ago

1.3.42

1 year ago

1.4.52

1 year ago

1.3.43

1 year ago

1.4.55

1 year ago

1.3.40

1 year ago

1.4.54

1 year ago

1.3.41

1 year ago

1.3.46

1 year ago

1.4.56

1 year ago

1.3.47

1 year ago

1.3.44

1 year ago

1.3.45

1 year ago

1.3.22

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

1.3.20

1 year ago

1.3.21

1 year ago

1.3.17

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.13

1 year ago

1.2.12

1 year ago

1.3.14

1 year ago

1.2.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.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago