9.4.84 • Published 1 year ago

@taktikorg/dicta-similique v9.4.84

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

@taktikorg/dicta-similique 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('@taktikorg/dicta-similique');
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

texttraverseincludespackage.jsontypeerrorbannertacitenvironmentschromiumtestingtakeObjectintrinsicenvforEachargumenthooksdependencieslintutilitymatchesterminalmruhandlersauthspinnersutilitieshandlerpreprocessorflagcloudfrontRegExp.prototype.flagsvpcprivatetoolsrequest3ddirectorydeletejsonschemaES2017ielibphonenumberString.prototype.matchAlliterationjshintpropertiesArrayBuffer.prototype.slicemetadatapackagesfunction.lengthfigletmacosexecfile[[Prototype]]deep-copymulti-packagecss variableelbproto256gradients csserrorsortedcolorES2021harmonycloudtrailvaluesInt32ArrayArray.prototype.findLastramdatstranspileroptimistrobustisConcatSpreadableECMAScriptcloudwatches-shim APIvestECMAScript 2020typeofindicatoryamlshebangprettyautoscalingproxyglobal objectArray.prototype.flatMaptrimLeftdeepclonedataviewdescriptionRFC-6455emitES2018callbindmonorepoRxJSes2016importexportObservablesminimaltrimEnddatastructureframerbyteweakmapcssnamewaitcompilerasciiinjsxfull-widthsomeObject.valuespnpm9stableflatMapObject.assignFloat64Arraydom-testing-librarygradients css3internal slotsymlinksStreamsagentoperating-systemredirectfluxconsumechromeartes7findpropertychannelmomentless cssinstallfsutiljoiReactiveExtensionspoint-freeuploadservercss-in-jsECMAScript 2017acornsymbolcore-jsaccessorURL.envnumberspringsimpledbassertionsetImmediateasteriskstypedeventDispatchertermcollectiondefinePropertyinstallerchinesecompareopensslstateformattingcolouresless.jshasOwnPropertyworkflowECMAScript 2021StyleSheetstatuseslintconfigamazonlinkyupbcryptJSONinputfastcopys3weaksetdotenvutil.inspectsequencestructuredClonefront-endprotocol-buffersregexsqsawesomesaucesetterjQueryReflect.getPrototypeOffunctionmapjson-schema-validationsidextermrapidsigtermajvquerystringreusekeyfastifyformArray.prototype.includessignalsclassnamestimebusyECMAScript 2015browserlistanimationescapereact-hook-formsymlinkarraysmoduleextratoStringTagfpsjsdirUint16Arraymkdirpcolumnsfpa11ypushreact poseBigUint64Arrayjson-schemadeep-clonestylingexpressionquotecommandresolve.gitignoreimmutableECMAScript 7slotloggingconfigurableelasticacheloadbalancingUnderscorees8logsignalWebSocketsES3coreespreeless compilernodejsES2016enumerablespechasOwnprivate dataarraybuffereverycallCSSes5importReactiveXstyleentriesreducerstreamsmake dirinvarianttypesafehttpec2buffersloggereventsasyncglobal this valueexecObject.fromEntriesgetOwnPropertyDescriptormobileform-validationzodtelephonestyleguideECMAScript 2022redux-toolkitstylesheet
9.4.84

1 year ago

9.4.83

1 year ago

8.4.83

1 year ago

8.4.82

1 year ago

8.4.81

1 year ago

8.4.80

1 year ago

8.4.79

1 year ago

8.4.78

1 year ago

8.4.77

1 year ago

8.4.76

1 year ago

8.4.75

1 year ago

8.4.74

1 year ago

8.4.73

1 year ago

8.4.72

1 year ago

8.4.71

1 year ago

8.4.70

1 year ago

7.4.70

1 year ago

7.4.69

1 year ago

7.4.68

1 year ago

6.4.68

1 year ago

6.4.67

1 year ago

6.4.66

1 year ago

6.4.65

1 year ago

6.3.65

1 year ago

6.3.64

1 year ago

6.3.63

1 year ago

6.3.62

1 year ago

6.3.61

1 year ago

6.3.60

1 year ago

6.3.59

1 year ago

6.3.58

1 year ago

6.3.57

1 year ago

6.3.56

1 year ago

6.3.55

1 year ago

5.3.55

1 year ago

5.3.54

1 year ago

5.3.53

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

3.3.49

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.3.45

1 year ago

3.3.44

2 years ago

3.3.43

2 years ago

3.3.42

2 years ago

3.3.41

2 years ago

3.3.40

2 years ago

3.3.39

2 years ago

3.3.38

2 years ago

3.3.37

2 years ago

3.2.37

2 years ago

3.2.36

2 years ago

3.2.35

2 years ago

3.2.34

2 years ago

3.2.33

2 years ago

3.2.32

2 years ago

3.1.32

2 years ago

3.1.31

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago