2.15.151 • Published 10 months ago

@firanorg/doloribus-dignissimos-nulla v2.15.151

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

@firanorg/doloribus-dignissimos-nulla Version Badge

github actions coverage License Downloads

npm badge

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

Examples

true when the descriptor has valid properties with valid values. false when not an object or when the object has invalid properties.

var isDataDesc = require('@firanorg/doloribus-dignissimos-nulla');
var assert = require('assert');

assert.equal(true, isDataDesc({ value: 'foo' }));
assert.equal(true, isDataDesc({ value: function () {} }));
assert.equal(true, isDataDesc({ value: true }));

assert.equal(false, isDataDesc('a'));
assert.equal(false, isDataDesc(null));
assert.equal(false, isDataDesc([]));

assert.equal(false, isDataDesc({ value: 'foo', bar: 'baz' }));
assert.equal(false, isDataDesc({ value: 'foo', bar: 'baz' }));
assert.equal(false, isDataDesc({ value: 'foo', get: function () {} }));
assert.equal(false, isDataDesc({ get: function () {}, value: 'foo' }) );
 
assert.equal(false, isDataDesc({ value: 'foo', enumerable: 'foo' }));
assert.equal(false, isDataDesc({ value: 'foo', configurable: 'foo' }));
assert.equal(false, isDataDesc({ value: 'foo', writable: 'foo' }));

Valid properties

The only valid data descriptor properties are the following:

  • configurable (required)
  • enumerable (required)
  • value (optional)
  • writable (optional)

To be a valid data descriptor, either value or writable must be defined.

Invalid properties

A descriptor may have additional invalid properties (an error will not be thrown).

var foo = {};

Object.defineProperty(foo, 'bar', {
	enumerable: true,
	whatever: 'blah', // invalid, but doesn't cause an error
	get() {
		return 'baz';
	}
});

assert.equal(foo.bar, 'baz');

Related projects

  • is-accessor-descriptor: Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.
  • is-descriptor: Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… more

Tests

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

bluebirdavacss variablesameValueZerodeterministicES2017autoscalingcolumnschaityped arrayStreamsArrayoutputwebownstyleguidehttpsdeepcloneweaksetsuperstructglobfile systemconfigurablees6envTypeBoxless.jsfetchreadablestreames-abstractcss nestingbundlerurlgradients csscurlstreamArray.prototype.findLastIndexObject.assignpackage managerasciiHyBifast-deep-copycopytraverseweakmapchromeansiObject.entrieseslintsyntaxidlecssbyteLengthfsschemesymbol_.extendconsoleMicrosoftsequencestdlibfolderresolveworkspace:*loadingdeep-clonemulti-packagecolumnforms0look-upkarmaArrayBuffer.prototype.sliceuninstalldotenvpostcss-pluginArrayBuffer#slicesesInt32ArrayregexoptionMapArray.prototype.flatjwtcoresortES2015queuecommandreact-testing-librarycompareless mixinsYAMLeverybyteOffsetpropertiesauthenticationcolorSymbolfunctionprotobufelectroncollection.es6execflagieclonefastcloneenvironmentsgetPrototypeOfstatusbreakunicodeECMAScript 6valuesArray.prototype.flatMappathwritablejsrestqsECMAScript 5iteratemergestylesheetinternaljapaneselimitedrmclass-validatormochacss-in-jsclassesjQueryserializereadclassnamestypei18nsimpledbeslintpluginrobustdescriptorescapefiltergroupBykeyagentJSONyamlnegativejsdomconsumepromisenativelanguageparentconcurrencyrfc4122fastifyrapidcontainsargparsejavascript$.extendl10nslicewalkingbannerhandlersinputjshintUint8ClampedArraycloudformationsettingsfpsmimeshamerror-handlingutiloffsetidtypesafetypesreadableECMAScript 2016logtsstylesignalzeroemrdatastructurenested cssBigUint64ArraymonorepojestString.prototype.trimSymbol.toStringTagdescriptorstelephoneECMAScript 2022sigtermbytetoolkit.envmkdirswriteiterationfind-upECMAScript 2015awaitdefinePropertydataReactiveXflatES6command-lineloadbalancingdirectorywatchershrinkwrapbindec2privatesyntaxerrorFloat64Arrayes2018rdsgetoptinvariantequalitycore-jsdropTypedArrayinstalltoArrayprunerequestlesscsslengthhttpstreams2linewraptypeofshimdeeplivejsxES2023indicatoroncetimereplayhigher-orderhelpersuuidisConcatSpreadablewarningjasminecloudwatchspecwgetslotbrowserslistparentsexit-codefast-copyscheme-validationlookflagsvarseventEmitternumberhooksnodecompilerfastcopyeventDispatcherfullwidthbddmiddlewarees2015has-ownefficientURLSearchParamsreactarraysio-tsvpcyuprangeerrorintrinsicestreetypedarraysObject.isInt16ArraynoperatekeysFunction.prototype.namereact-hook-formgenerics
@firanorg/inventore-eligendi-quam@firanorg/inventore-hic-cumque@firanorg/impedit-mollitia-sint@firanorg/id-et-quaerat@firanorg/amet-accusantium-dolor@firanorg/amet-consectetur-veniam@firanorg/cupiditate-veniam-ut@firanorg/autem-eveniet-earum@firanorg/corporis-iste-ullam@firanorg/commodi-recusandae-provident@firanorg/architecto-velit-odit@firanorg/exercitationem-debitis-laborum@firanorg/et-non-error@firanorg/sit-ex-nostrum@firanorg/necessitatibus-similique-nam@firanorg/laudantium-corrupti-itaque@firanorg/necessitatibus-sunt-quia@firanorg/sit-odit-numquam@firanorg/ut-officiis-et@firanorg/temporibus-quibusdam-non@firanorg/totam-excepturi-voluptas@firanorg/veniam-temporibus-accusantium@firanorg/doloribus-laborum-qui@firanorg/dolore-cumque-distinctio@firanorg/delectus-eligendi-quae@firanorg/earum-impedit-cupiditate@firanorg/eligendi-aut-ducimus@firanorg/error-laboriosam-molestias@firanorg/doloribus-quasi-dolores@firanorg/dolorem-architecto-eum@firanorg/fuga-unde-tempore@firanorg/explicabo-incidunt-facere@firanorg/hic-doloremque-est@firanorg/fuga-quis-optio@firanorg/hic-tempora-dignissimos@firanorg/harum-ad-explicabo@firanorg/iure-voluptates-nobis@firanorg/itaque-consectetur-velit@firanorg/ratione-iusto-numquam@firanorg/saepe-ut-natus@firanorg/sapiente-expedita-quidem@firanorg/repellat-expedita-autem@firanorg/alias-repellat-vero@firanorg/pariatur-officia-placeat@firanorg/odit-corrupti-aperiam@firanorg/optio-velit-culpa@firanorg/numquam-inventore-ad@firanorg/non-praesentium-sint@firanorg/nulla-cupiditate-ad@firanorg/neque-est-dolorum@firanorg/voluptatem-culpa-iusto@firanorg/voluptate-perspiciatis-placeat@firanorg/vero-laborum-tenetur@firanorg/accusamus-magnam-numquam@firanorg/a-neque-sunt@firanorg/ab-magni-explicabo@firanorg/iste-dolor-omnis@firanorg/quasi-commodi-fugit@firanorg/quia-dolores-occaecati@firanorg/quia-cumque-perspiciatis@firanorg/perferendis-iusto-vitae@firanorg/voluptatem-odit-et@firanorg/maxime-deleniti-soluta
2.15.151

10 months ago

2.15.150

10 months ago

2.14.150

10 months ago

2.14.148

10 months ago

2.14.149

10 months ago

2.13.147

10 months ago

2.13.148

10 months ago

2.13.143

10 months ago

2.13.144

10 months ago

2.13.145

10 months ago

2.13.146

10 months ago

2.13.136

11 months ago

2.13.137

11 months ago

2.13.138

11 months ago

2.13.139

10 months ago

2.13.133

11 months ago

2.13.134

11 months ago

2.13.135

11 months ago

2.13.140

10 months ago

2.13.141

10 months ago

2.13.142

10 months ago

2.13.131

11 months ago

2.13.132

11 months ago

2.13.129

11 months ago

2.13.130

11 months ago

2.12.129

11 months ago

2.12.128

11 months ago

2.12.127

11 months ago

2.11.123

11 months ago

2.11.124

11 months ago

2.11.125

11 months ago

2.11.126

11 months ago

2.11.127

11 months ago

2.11.122

11 months ago

2.11.121

11 months ago

2.10.121

11 months ago

2.10.119

11 months ago

2.10.118

11 months ago

2.10.120

11 months ago

2.10.117

11 months ago

2.10.116

11 months ago

2.10.115

11 months ago

2.10.114

11 months ago

2.10.113

11 months ago

2.10.112

11 months ago

2.10.111

12 months ago

2.10.110

12 months ago

2.9.110

12 months ago

2.9.109

12 months ago

2.9.108

12 months ago

2.8.108

12 months ago

2.6.94

1 year ago

2.6.101

12 months ago

2.6.102

12 months ago

2.6.100

12 months ago

2.4.79

1 year ago

2.6.99

12 months ago

2.4.76

1 year ago

2.4.75

1 year ago

2.4.78

1 year ago

2.4.77

1 year ago

2.6.95

1 year ago

2.6.96

12 months ago

2.6.97

12 months ago

2.6.98

12 months ago

2.4.81

1 year ago

2.4.80

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

2.4.87

1 year ago

1.4.35

1 year ago

2.4.86

1 year ago

1.4.34

1 year ago

2.4.89

1 year ago

1.4.37

1 year ago

2.4.88

1 year ago

1.4.36

1 year ago

2.4.83

1 year ago

1.4.39

1 year ago

2.4.82

1 year ago

1.4.38

1 year ago

2.4.85

1 year ago

2.4.84

1 year ago

2.4.90

1 year ago

2.4.92

1 year ago

2.4.91

1 year ago

1.3.30

1 year ago

2.4.94

1 year ago

2.4.93

1 year ago

2.7.107

12 months ago

1.4.60

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

1.4.64

1 year ago

1.4.63

1 year ago

1.4.66

1 year ago

1.4.65

1 year ago

1.4.68

1 year ago

1.4.67

1 year ago

1.4.69

1 year ago

1.4.71

1 year ago

1.4.70

1 year ago

1.4.73

1 year ago

1.4.72

1 year ago

1.4.75

1 year ago

1.4.74

1 year ago

2.5.94

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.4.40

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

2.8.107

12 months ago

1.4.46

1 year ago

1.2.23

1 year ago

1.4.45

1 year ago

1.2.24

1 year ago

1.4.48

1 year ago

1.2.21

1 year ago

1.4.47

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.4.49

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.4.53

1 year ago

1.4.52

1 year ago

1.4.55

1 year ago

1.4.54

1 year ago

2.6.105

12 months ago

1.4.57

1 year ago

2.6.106

12 months ago

1.4.56

1 year ago

2.6.103

12 months ago

1.4.59

1 year ago

2.6.104

12 months ago

1.4.58

1 year ago

2.6.107

12 months 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.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

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