time-to-botec/js/node_modules/@stdlib/utils/pick/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

30 lines
514 B
Plaintext

{{alias}}( obj, keys )
Returns a partial object copy containing only specified keys.
If a key does not exist as an own property in a source object, the key is
ignored.
Parameters
----------
obj: Object
Source object.
keys: string|Array<string>
Keys to copy.
Returns
-------
out: Object
New object.
Examples
--------
> var obj1 = { 'a': 1, 'b': 2 };
> var obj2 = {{alias}}( obj1, 'b' )
{ 'b': 2 }
See Also
--------