4.6.110 • Published 10 months ago

@diotoborg/voluptatum-veritatis v4.6.110

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@diotoborg/voluptatum-veritatis 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('@diotoborg/voluptatum-veritatis');
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

chinesenodei18ncallasttoArraybyteLengthES2021findupsafejsdiffFunction.prototype.namerouterindicatortesterdebugger-0speedUint8ClampedArrayes7spawnerrorstableredux-toolkitansibytermTypedArrayinspectinputYAMLpatchclassnameshasimportexportmochaes5vestoncemakeserializerdataArray.prototype.findLastIndexshelltacitargvtypanionsetPrototypeOfprettytyped arraycallbackquerystringupdefinePropertyObservableswritablequoteSymboltddpromiseserializationmatcheszxobjprotobufendpointfastclonejson-schema-validation__proto__collection.es6real-timemonorepogroupECMAScript 2019namesl10najvdependency managerfpsvalueconsumecommand-linefeedkeystylingbuffersinextrarssprogressstructuredClonewarningtostringtagbuffertoolsnamemanipulationObject.definePropertyio-tsbundlervaluesdynamodbES5regexbinStreampure.envflagsavaredirectjsdomterminalflatMapbinariesECMAScript 6installerESjsonredactdiffArrayBuffer.prototype.sliceregular-expressions3browserslistdirectorySymbol.toStringTaggetOwnPropertyDescriptoridpackage managerStyleSheetrobustprocessassertsformstslibconfigxtermloggingcolumncurried$.extendRegExp.prototype.flagsdeletetypescript256dir[[Prototype]]es2017sharedarraybufferefficientelasticachereadablestream0formatbabelfast-copytranspilesettingsenumerablebrowsercharacterreuserangeerrorArray.prototype.includesfullwidthwalkingreduceanimationpostcss-plugines2015look-upeslint-pluginharmonyWebSocketsjsonschemaspringenvcontainsObject.valueschannelhelperdeep-cloneECMAScript 7everyfind-upfromyuptapIteratorObject.getPrototypeOfprototypeassertionminimalconcatexecfileutilsschemefunctionsespreefunctionalPushassignESnextistanbulglobal objectcode pointsplugindependenciesBigUint64ArrayloggermruUint16Arraypipepropertiesreact-hookspicomatchurlfast-deep-copystartershamflagsesfilteroptimizersetemrsymbolttycore-jsmoduletypedarrayststrimRightES2019@@toStringTagHyBiuuidjapanesetc39typeofenderrestwaapiArray.prototype.flatdomES7symlinksfastconstes-abstracttoobjectvarsmobileECMAScript 2020dropECMAScript 2022route53deepmkdirpvalidArray.prototype.containsutilpreprocessorObject.entriespushcolourfantasy-landweakmapoutputnegativeebswaitgetterdescriptorsloadbalancingfindJSON-SchemainstrumentationECMAScriptesmapreduceSystem.globalmkdirsreact animationcommanderlrumatchAllFloat32ArraysearchextendgenericskoreandateArray.prototype.flatMapreact-hook-formelbstringifyassertasteriskstranspilerinternal slotglobtoolkitreact poserm -fr
4.6.110

10 months ago

4.6.109

10 months ago

4.6.108

10 months ago

4.6.107

10 months ago

4.6.106

10 months ago

4.6.105

10 months ago

4.6.104

10 months ago

4.6.103

10 months ago

4.6.102

10 months ago

4.6.101

10 months ago

4.6.100

10 months ago

4.6.99

10 months ago

4.6.98

10 months ago

4.5.98

10 months ago

4.5.97

10 months ago

4.5.96

10 months ago

4.5.95

10 months ago

4.5.94

10 months ago

4.5.93

11 months ago

4.5.92

11 months ago

4.5.91

11 months ago

4.5.90

11 months ago

4.4.90

11 months ago

3.4.90

11 months ago

3.4.89

11 months ago

3.4.88

11 months ago

3.3.88

11 months ago

3.3.87

11 months ago

2.3.87

11 months ago

2.2.87

11 months ago

2.2.86

11 months ago

2.2.85

11 months ago

2.2.84

11 months ago

2.2.83

11 months ago

2.2.82

11 months ago

2.2.81

11 months ago

2.2.80

11 months ago

2.2.79

11 months ago

2.2.78

11 months ago

2.2.77

11 months ago

2.2.76

11 months ago

2.2.75

11 months ago

2.2.74

11 months ago

2.2.73

11 months ago

2.2.72

11 months ago

2.2.71

11 months ago

2.2.70

11 months ago

2.2.69

11 months ago

2.2.68

12 months ago

2.2.67

12 months ago

2.2.66

12 months ago

2.2.65

12 months ago

2.1.65

12 months ago

2.1.64

12 months ago

2.1.63

12 months ago

2.1.62

12 months ago

2.1.61

12 months ago

2.1.60

12 months ago

2.1.59

12 months ago

2.1.58

12 months ago

2.1.57

12 months ago

2.1.56

12 months ago

2.1.55

12 months ago

2.1.54

12 months ago

2.1.53

12 months ago

2.1.52

12 months ago

2.1.51

12 months ago

2.1.50

12 months ago

2.1.49

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.1.43

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

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