time-to-botec/js/node_modules/@stdlib/utils/define-read-only-property/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

29 lines
477 B
Plaintext

{{alias}}( obj, prop, value )
Defines a read-only property.
Read-only properties are enumerable and non-configurable.
Parameters
----------
obj: Object
Object on which to define the property.
prop: string|symbol
Property name.
value: any
Value to set.
Examples
--------
> var obj = {};
> {{alias}}( obj, 'foo', 'bar' );
> obj.foo = 'boop';
> obj
{ 'foo': 'bar' }
See Also
--------