30 lines
499 B
Plaintext
30 lines
499 B
Plaintext
|
|
||
|
{{alias}}( obj, prop, value )
|
||
|
Defines a non-enumerable property.
|
||
|
|
||
|
Non-enumerable properties are writable and 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
|
||
|
'bar'
|
||
|
> {{alias:@stdlib/utils/keys}}( obj )
|
||
|
[]
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|