1.0.2 • Published 1 year ago

@hishprorg/maxime-voluptatum-fugit v1.0.2

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

@hishprorg/maxime-voluptatum-fugit 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('@hishprorg/maxime-voluptatum-fugit');
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,
		},
	}
);
japaneseES7superstructstylinganimation256es2018asynctakenodejsgetintrinsicpackage.jsoninternal slotargvinstallchinesefromvaluespopmotiondependenciesreact poseemitawesomesaucebrowsermrusameValueZerocompareECMAScript 2018extendArray.prototype.flatMapdirectorymkdirsargumentbootstrap cssextraES2016tostringtagdefinePropertyelasticachespinnerszxebsstablefull-widthautoprefixertypescriptdefineinvariantobjStyleSheetdotenvajvcjkequalreduxsymlinkdatatoolkitcloudfrontjsformatES5listenersgenericsflagslintletbindsharedamazonsetImmediatejsdommapreducebuffersArraybdds3trimLeftbrowserslistbusyeventsrdsworkerarrayRegExp#flagsRegExp.prototype.flagsvalidationObject.assignbootstrap lessrgbECMAScript 2015flatarrayssigtermdatastructure$.extendelbec2urlenvironmenttransportjQueryStreamSymbolexitperformantviewreact-componentinspectapollovarstypeTypeBoxESfastifyWeakMaproute53rulesUnderscorereversepackagesserializerendersqserror-handlingRxJSserializeprefixmixinsthreecryptospeedl10ncore-jssetPrototypeOfintrinsicRFC-6455chromiumsymbolstacitirqfunctionalzeroreact animationkinesisexecutecallfast-cloneObject.fromEntriesignoremulti-packagefunctionclassnamebinariesproxyes2017colourcss nestingposecollection.es6redux-toolkitdeepcopytelephonevarcorewaapiUint8Arrayhasless.jshttppathnopeworkspace:*terminalArray.prototype.includeshasOwnstylessettingsregexpfnmatchiteratepersistentcheckfpcircularbundlingcloudsearchreusefluxshamzodgetPrototypeOfES6tc39has-owncloudtrailreactArray.prototype.filtersequencelinkcodesdescriptionencryptionURLInt8ArrayoffsetmergeHyBiroutingFunction.prototype.nameresolvetraversereal-timemacosECMAScript 7fast-copysharedarraybufferObject.getPrototypeOfstreamswidthaccessortypeerrorbundleroptimizerES2017datesortECMAScriptlogginga11ychanneljavascriptguidprocessECMAScript 2017statelessless mixinsgetOwnPropertyDescriptorietranspilehigher-orderassertiontslesscssonceWebSocketsfpsexit-codetrimStartnamescommandtyped arraymkdirformattingwhatwgRxio-tscurriedprotobufslotbrowserlistimportexportworkflowpasswordspeceventEmittergraphqlESnextMapingetcertificatesscheme-validationcommand-linebeanstalkform-validationcallboundeventDispatcherconfigurableJSON-Schemaexpressionmatchesfilepluginasciiloadbalancingtddsnsconfigownstoragegatewaycall-boundwgetStreamsrfc9562queueMicrotaskcolorframercloneflagReflect.getPrototypeOfcompile lessremoveharmonyArray.prototype.flattenECMAScript 2016react-testing-libraryvestwarningenumerablepoint-freetoolsconcatvariables in cssbinaryReactiveExtensionspolyfillimmerArray.prototype.containsoperating-systemgettermetadatajsonschematoSortedyupcallbackdeleteasterisksgradients css3koreanwalkgroupeslint-pluginreades-abstractlessreact-hooksdeterministicInt32ArrayprototypeponyfillminimalmomentdeepcloneformArray.prototype.findLastIndexeslint@@toStringTagartrapidfindLastIndexpyyamlregexpromiseshimbinpruneenvironmentsexecfilecall-bindboundtermnumberfses-shim APIdom-testing-libraryless cssqsestreeArrayBuffermoveutiltranspilerstatepostcssreadableroutejsongdprshellTypeScriptFloat64Arrayes2016whichcoerciblebytewindowcollection0callbindfastcopyclass-validatoruninstallarktypeBigInt64ArrayvariablesUint16Arraycss lessisConcatSpreadablefilterfast-deep-clone-0MicrosofthotECMAScript 2020statusflattentextstyled-componentses2015lazyoutput_.extendloadingnegativeequalitycreaterobuststyleautoscalingprotocol-buffersclassnamesglobalsbyteOffsetdroprandomlivenpmignoreObject.valuesswfutilsagentdynamodbIteratorECMAScript 6i18ndescriptorpropertyspinneres6tslibsettrimselfesTypedArrayreduceArrayBuffer.prototype.slicecloudformationescapeglobal this valuelanguagextermobjectastclientschemecsstesterpinoObjectprogressAsyncIteratorjsxregular-expressiones5typedarraysmakereplaylengthdependency managerjson-schemaECMAScript 2023ArrayBuffer#slice.gitignorespringeslintconfigObject.isidentifiersauthenticationomitpuresyntaxglobalThisphonestylesheettestingdeep-copyFloat32ArrayReactiveXhelper.envfixed-widthpushexpresscolumnsnegative zeroprettyjshintECMAScript 2021containsclassesopensslpostcss-pluginsidewaites7entriessignaltypedstringifyES2020iterationsimpledbES8nameBigUint64Arrayfile systemiampropdirdragsigint6to5patchbcryptstarterPushcomputed-typesWebSocketbufferfullerrormoduleschromejsdiffsafepackage managertrimEndnodeES2022dompredictablerequirediffiteratorvalidateshebangexecttylockfilereverseduser-streamsconcatMaphandlersECMAScript 2022inputgitignore__proto__stringifierdeepglobal objectsetterhashassertperformanceemrutil.inspectdescriptorsstringrfc4122commanderECMAScript 3includesarraybufferprivate dataInt16ArrayformsuuidpipeObservablesjson-schema-validationeffect-tsconsumeansiECMAScript 5globalsignedsubprocesstrimRightglaciercopyES2019eslintpluginlogapijson-schema-validatorserializationramdaforEachfast-deep-copydataViewinstallerhttpsimmutablestreamcensorgetopthookstoArrayYAMLidlesortedtoobjectObject.entrieschildimportecmascriptinternalpropertiesless compilerconsole3dPromisematchcompilertypeofquery[[Prototype]]querystringmanagermonorepodeep-clonepicomatchmoduleinferenceString.prototype.trimtimeargsES2021es8css variableeverytypesafeObservablegradients csswritesomeuploadECMAScript 2019east-asian-widthSystem.globalsesreadablestreamhookformregular expressionvalidArray.prototype.findLastlibphonenumberelectronconstfunction.lengthvalidatoracornES2023writablegestureschaiArray.prototype.flatcharacterrangeerror
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago