time-to-botec/js/node_modules/@stdlib/utils/define-configurable-read-only-property/docs/repl.txt

29 lines
482 B
Plaintext
Raw Normal View History

{{alias}}( obj, prop, value )
Defines a configurable read-only property.
Configurable read-only properties are enumerable.
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
--------