3.9.98 • Published 10 months ago

@taktikorg/commodi-laboriosam v3.9.98

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

3.9.97

10 months ago

3.9.96

10 months ago

3.8.96

10 months ago

3.8.95

10 months ago

3.8.94

10 months ago

3.8.93

11 months ago

3.8.92

11 months ago

3.8.91

11 months ago

3.8.90

11 months ago

3.8.89

11 months ago

3.8.88

11 months ago

3.8.87

11 months ago

3.8.86

11 months ago

3.8.85

11 months ago

3.8.84

11 months ago

3.8.83

11 months ago

3.8.82

11 months ago

3.8.81

11 months ago

3.8.80

11 months ago

3.8.79

11 months ago

3.8.78

11 months ago

3.8.77

11 months ago

3.7.77

11 months ago

3.7.76

11 months ago

3.7.75

11 months ago

3.7.74

11 months ago

3.7.73

11 months ago

3.7.72

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.7.69

11 months ago

3.7.68

11 months ago

3.7.67

11 months ago

3.7.66

11 months ago

3.7.65

11 months ago

3.7.64

12 months ago

3.7.63

12 months ago

3.7.62

12 months ago

3.7.61

12 months ago

3.7.60

12 months ago

3.6.60

12 months ago

3.6.59

12 months ago

2.6.59

12 months ago

2.5.59

12 months ago

2.5.58

12 months ago

2.5.57

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.3.54

12 months ago

2.3.53

12 months ago

2.3.52

12 months ago

2.2.52

12 months ago

2.2.51

12 months ago

2.2.50

1 year ago

2.1.50

1 year 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.0.44

1 year ago

2.0.43

1 year ago

2.0.42

1 year ago

2.0.41

1 year ago

2.0.40

1 year ago

2.0.39

1 year ago

2.0.38

1 year ago

2.0.37

1 year ago

2.0.36

1 year ago

2.0.35

1 year ago

2.0.34

1 year ago

2.0.33

1 year ago

2.0.32

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

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