time-to-botec/js/node_modules/@stdlib/utils/capitalize-keys/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
523 B
Plaintext

{{alias}}( obj )
Converts the first letter of each object key to uppercase.
The function only transforms own properties. Hence, the function does not
transform inherited properties.
The function shallow copies key values.
Parameters
----------
obj: Object
Source object.
Returns
-------
out: Object
New object.
Examples
--------
> var obj = { 'aa': 1, 'bb': 2 };
> var out = {{alias}}( obj )
{ 'Aa': 1, 'Bb': 2 }
See Also
--------