3.9.98 • Published 2 years ago

@taktikorg/commodi-laboriosam v3.9.98

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@taktikorg/commodi-laboriosam Version Badge

github actions coverage License Downloads

npm badge

Define a data property on an object. Will fall back to assignment in an engine without descriptors.

The three non* argument can also be passed null, which will use the existing state if available.

The loose argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.

Usage

var defineDataProperty = require('@taktikorg/commodi-laboriosam');
var assert = require('assert');

var obj = {};
defineDataProperty(obj, 'key', 'value');
defineDataProperty(
	obj,
	'key2',
	'value',
	true, // nonEnumerable, optional
	false, // nonWritable, optional
	true, // nonConfigurable, optional
	false // loose, optional
);

assert.deepEqual(
	Object.getOwnPropertyDescriptors(obj),
	{
		key: {
			configurable: true,
			enumerable: true,
			value: 'value',
			writable: true,
		},
		key2: {
			configurable: false,
			enumerable: false,
			value: 'value',
			writable: true,
		},
	}
);
dateregular expressionserrormanagerfunctionresolveapolloInt16ArraysafedescriptorsURLjsdiffhookformec2filterrouteECMAScript 5arrayscore-jsaccessibilitynpmObject.assignbinariesquotenegative@@toStringTagstyled-componentstypesafeclonedescriptiontelephonetoStringTagvpcregexrobustmkdirmobilejsonvalueCSSdropcensorwafstringifyframerrmtyped arraysymbolSetcjkmulti-packagevaluespureefficientnodereducerlanguagegdpr6to5ES2021computed-typesmoduleUint16ArrayconcatMapinspectbinaryvarstextminimalinjapaneseperformancecolorsmanipulationwalkfullwidthpinooncehelpersignorethreehtmlsnsforEachdebugreadES2016qsimportisConcatSpreadable0regular expressionclassnamesflattenlengthpnpm9identifierscloudtrailprunediffanimationcallbackasciipropertyexpressflattakevalidatecircularviewpostcssesfind-upprettycallbddrm -rftapnegative zerofpsemrxhrcolumnexecutevalidswftypedTypeBoxArray.prototype.findLasttypeofES2020sqsIteratormkdirsStreamsgraphqltapeautoscalingexecfilerssmkdirpprivaterm -fres7jQueryconsumeoptimistgetreact-testing-librarysubprocessa11ytypesup.envelasticachemoveclienttoolkitstartertrimEndqueueMicrotaskUint8ClampedArrayRxzodcharacterkarmaclassnamebrowserlistzeroreal-timechromiummapString.prototype.trimWebSocketsstringcss-in-jsStyleSheetdataViewECMAScript 2017tsdeepcloneserializationtrimLeftglobalsrestfulESajaxfastcopydires-shimskoreantypeformsassigncolourfast-cloneECMAScript 2015gitignoreprotocol-buffersArray.prototype.flatcolumnsspawnsesdayjscontainsglobal this valuedragObject.values_.extendfindLastIndexSymbol.toStringTagenvfunctionsenderdescriptoromitWeakMapfindLastFloat64ArraysameValueZeroworkerECMAScript 7looksharedcommandBigUint64ArraytransportairbnbqueueebsgroupeventssymbolsroutercolorArray.prototype.flatteneast-asian-widthpostcss-pluginUint8ArrayloggingRxJSES2022buffersassertuninstalltestingSystem.globalpackage.jsonmochaPromisepopmotionglobimmertouchtoobjectWebSocketinputyamltoArraycollection.es6buffermetadataurlgetintrinsiclockfilesinatraHyBishimreadableMicrosoftprotobufbusystylingjsdomutilsObjectpackage managerstylesmatchfnmatchlinktypeerrorimportexportSymbolJSONfastifyi18nidleReflect.getPrototypeOfprocesses-abstractbundlingequalproxyes2017searchrmdirenvironmentsargvartes2018es2016elbstringifierfetchwritableUint32ArraynamesES6route53Int8ArrayArray.prototype.filterargshelperdompositivelrustructuredClone[[Prototype]]getPrototypeOfcharactersObject.definePropertypackagefullsyntaxObservablessortreact poseexpressionJSON-Schemaslicelibphonenumberfeedplugininternal slotdeterministiccode pointsfunction.lengthspringsharedarraybufferphonecorecacheutil.inspectdependency managermonorepowritefolderconstuser-streamsiseslintpluginframeworkes8awesomesauceutilitysetPrototypeOfbrowserslistlastcoverageESnextarraybuffersuperstructArrayBufferfixed-widthstyleguidetransformdefinemomentsimpledbcurriedsetMapjses2015pyyamlvalidationobjbinjavascriptglobal objectfastECMAScript-0dependenciesfast-deep-copystreamFunction.prototype.namedatavieweslint-pluginhigher-orderagentFloat32ArraygesturesnamewebcloudfrontuuidStreamUnderscoreparserapiinstallparentspinnersfunctionalrfc4122regexpcopyutilitiesamazonargumentasterisksschemeprefixjson-schema-validatorRFC-6455inferenceassertionendpointrestflagsdeepcopyiterateawsvariableschromereact-hook-formrandomtimees6numberTypedArrayttyequalityfast-deep-clonelocationhas-ownvisualObservablebeanstalkwhichcall-boundshellwaapiinstrumentationwidthpushbytetslibdeletefast-copywgetrequirereversedparseweakmaplintelectronobjectstylecommand-linemake dirTypeScriptmatchesrecursivebundlersortedenumerableeslintconfighasOwndeep-cloneescapesetterbabel-corefull-widthECMAScript 2020formatqueryiteratorcallboundECMAScript 2022tc39ECMAScript 2016httpserializerjestshrinkwrapmakejson-schema-validationURLSearchParamscloudsearchredirecttranspileindicatorspinnertermpoint-freeemojiassertsvestspecflagzxutilio-ts__proto__streamses-shim APIstablefile systemES2018regulartoSortedaccessoriamString.prototype.matchAllnopeECMAScript 6syntaxerrorremoveextratestcompilerReactiveExtensionsreact animationmodulesArrayprivate dataguidtranspilerES3reduxforkes5loadbalancingcliponyfillpolyfillavadeepconsoleoffsetxmlistanbulworkflowinternall10nreadablestreamtesterhashharmonytrimjsonschemainvariantmatchAllES7getOwnPropertyDescriptorcloudwatchselfarraydotenvtacitchanneltoReversedBigInt64Arrayconfigurableoptionunicodecoerciblepropoptimizereffect-ts
3.9.98

2 years ago

3.9.97

2 years ago

3.9.96

2 years ago

3.8.96

2 years ago

3.8.95

2 years ago

3.8.94

2 years ago

3.8.93

2 years ago

3.8.92

2 years ago

3.8.91

2 years ago

3.8.90

2 years ago

3.8.89

2 years ago

3.8.88

2 years ago

3.8.87

2 years ago

3.8.86

2 years ago

3.8.85

2 years ago

3.8.84

2 years ago

3.8.83

2 years ago

3.8.82

2 years ago

3.8.81

2 years ago

3.8.80

2 years ago

3.8.79

2 years ago

3.8.78

2 years ago

3.8.77

2 years ago

3.7.77

2 years ago

3.7.76

2 years ago

3.7.75

2 years ago

3.7.74

2 years ago

3.7.73

2 years ago

3.7.72

2 years ago

3.7.71

2 years ago

3.7.70

2 years ago

3.7.69

2 years ago

3.7.68

2 years ago

3.7.67

2 years ago

3.7.66

2 years ago

3.7.65

2 years ago

3.7.64

2 years ago

3.7.63

2 years ago

3.7.62

2 years ago

3.7.61

2 years ago

3.7.60

2 years ago

3.6.60

2 years ago

3.6.59

2 years ago

2.6.59

2 years ago

2.5.59

2 years ago

2.5.58

2 years ago

2.5.57

2 years ago

2.4.57

2 years ago

2.4.56

2 years ago

2.3.56

2 years ago

2.3.55

2 years ago

2.3.54

2 years ago

2.3.53

2 years ago

2.3.52

2 years ago

2.2.52

2 years ago

2.2.51

2 years ago

2.2.50

2 years ago

2.1.50

2 years ago

2.1.49

2 years ago

2.1.48

2 years ago

2.1.47

2 years ago

2.1.46

2 years ago

2.1.45

2 years ago

2.1.44

2 years ago

2.0.44

2 years ago

2.0.43

2 years ago

2.0.42

2 years ago

2.0.41

2 years ago

2.0.40

2 years ago

2.0.39

2 years ago

2.0.38

2 years ago

2.0.37

2 years ago

2.0.36

2 years ago

2.0.35

2 years ago

2.0.34

2 years ago

2.0.33

2 years ago

2.0.32

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

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