7.4.78 • Published 12 months ago

@zitterorg/dignissimos-quo-velit v7.4.78

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

Non-Enumerable Read-Only

NPM version Build Status Coverage Status

Define a non-enumerable read-only property.

Installation

npm install @zitterorg/dignissimos-quo-velit

Alternatively,

  • To load the package in a website via a script tag without installation and bundlers, use the ES Module available on the esm branch (see README).
  • If you are using Deno, visit the deno branch (see README for usage intructions).
  • For use in Observable, or in browser/node environments, use the Universal Module Definition (UMD) build available on the umd branch (see README).

The branches.md file summarizes the available branches and displays a diagram illustrating their relationships.

To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.

Usage

var setNonEnumerableReadOnly = require( '@zitterorg/dignissimos-quo-velit' );

setNonEnumerableReadOnly( obj, prop, value )

Defines a non-enumerable read-only property.

var obj = {};

setNonEnumerableReadOnly( obj, 'foo', 'bar' );

obj.foo = 'boop';
// throws <Error>

Notes

  • Non-enumerable read-only properties are non-configurable.

Examples

var setNonEnumerableReadOnly = require( '@zitterorg/dignissimos-quo-velit' );

function Foo( name ) {
    if ( !(this instanceof Foo) ) {
        return new Foo( name );
    }
    setNonEnumerableReadOnly( this, 'name', name );
    return this;
}

var foo = new Foo( 'beep' );

try {
    foo.name = 'boop';
} catch ( err ) {
    console.error( err.message );
}

See Also


Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

Community

Chat


Copyright

Copyright © 2016-2024. The Stdlib Authors.

Object.getPrototypeOfassignautoscalingincodessestimeponyfilljasminees2016folderutilcharactercallbindelectronmimesearchECMAScript 2019artstructuredClonetoSortedmake dirutil.inspectcryptosimpledbcjkpropertymochajsdifffetchdeepcloneeventDispatcherdayjseast-asian-widthsuperagentassertionreusevarsttyregularMapcreatesettingsvaluesphoneconcatMapmatchTypeBoxvisualcode pointsesurlssidearktypeflatshampostcssenvironmentemojimetadataposeurlsqsJSONescapetypesafeECMAScript 2018workerpackagecolorstypeequaldirectorywalkingObject.entriesxhrgetOwnPropertyDescriptorArray.prototype.includeseventEmittertextdependency managercensorvariablescloudtrailstarterformdirreducetc39wordbreakintrinsicreact-hook-formECMAScript 2021queueMicrotaskcorepreserve-symlinksES2016react poseInt32ArrayESidentifierschromeemitlibphonenumberhasOwnPropertysnstestingnodepyyamlhttpsreal-timecontainshardlinksdescriptorstringquerystringisECMAScript 2020framerfastifywebsitecoerciblezodicuunicodeeditoragentmakees2018bddprocesslengthrdshelpersconfigincludes_.extendreadiamSetdatastructureargvexecutableformatlazyrm -frURLjestglacierbundlerFunction.prototype.nametools-0fixed-widthformattingmodulesBigUint64ArrayprototypetypedarraysdeterministicReflect.getPrototypeOfextraBigInt64ArrayString.prototype.trimprettyopencommanderinvariantstreamgroupparserendercloudwatchexestringifystyleguideflagsyntaxES6qsshrinkwrapjsdomassertindicatoruuidArray.prototype.flatsortedlanguagedragbyteOffsetansiavaclientstatelessyamlcloudsearchboundsharedruntimetypedsymlinksbusypolyfillTypeScriptnativeawesomesauceserializerlookcommand-linespinnersfile systemrobustArrayBufferdefaultES7sequencecallbackwaitrgb[[Prototype]]Object.valuesinstrumentationES2017curloutputdefinegetterES2018minimalgesturesenvio-tsjshintapimimetypesSymbol.toStringTagxdg-openglobalstapemergeguidlimiteduninstallmobilei18ntoArraychildkey valueschemeistanbulchannelcolumnsinternalpicomatchterminalArray.prototype.flatMapdom-testing-libraryenvironmentslruquoteredux-toolkitautoprefixeraccessibilitywaftouchredirectdropanimationbundlingpropmulti-packagefast-cloneslotkarmaebsownbeanstalkforEachbannerES2023tapgraphqlweaksetasyncfindLastvalidatetrimEndmatchessortECMAScript 5ES2015ES2022breakcollection.es6xdgutilitiesstartsetfullwidthpackage managercss-in-jspipeECMAScript 2022optimizertsAsyncIteratorawaitprototrimRightfastclonefast-deep-copypushlocationprivate datapopmotiontypeofUnderscorecolourReactiveExtensionsexecECMAScript 3reduxregexpprogressnegative zeroisConcatSpreadablees8256tslibarraystypedarraydescriptioncirculargetintrinsicinternal slotmatchAlltelephonefindwordwrapECMAScript 6clicoveragewalkjsxspeednopeelbUint8Arrayelasticachehelperdeletecomparesymbolrfc4122springweakmapReactiveX0requestchromiumwgetestreemrusameValueZeroglobparsingsimple cachequeryESnextratelimitkinesischaracterstrimStartECMAScript 2015postcss-pluginequalityfind-upbufferswhichconcurrencyES2021
7.4.78

12 months ago

6.4.76

12 months ago

6.4.75

12 months ago

7.4.76

12 months ago

7.4.77

12 months ago

6.3.74

12 months ago

6.3.75

12 months ago

6.3.73

12 months ago

6.3.72

12 months ago

6.3.71

12 months ago

5.3.71

12 months ago

5.3.69

12 months ago

5.3.68

12 months ago

5.3.67

12 months ago

5.3.70

12 months ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

4.3.59

1 year ago

5.3.66

12 months ago

4.3.58

1 year ago

5.3.65

12 months ago

5.3.64

12 months ago

3.3.46

1 year ago

3.3.47

1 year ago

3.3.48

1 year ago

3.3.49

1 year ago

3.3.44

1 year ago

3.3.45

1 year ago

3.3.50

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

3.3.53

1 year ago

3.3.54

1 year ago

2.2.39

1 year ago

2.2.37

1 year ago

2.2.38

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.2.32

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.40

1 year ago

4.3.60

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

2.2.40

1 year ago

2.1.32

1 year ago

2.1.28

1 year ago

2.1.29

1 year ago

2.1.30

1 year ago

2.1.31

1 year ago

2.1.27

1 year ago

2.1.25

1 year ago

2.1.26

1 year ago

2.1.18

1 year ago

2.1.19

1 year ago

2.1.23

1 year ago

2.1.24

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

2.1.16

1 year ago

2.1.17

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

1.1.12

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.7

1 year ago

1.1.6

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