any input value that is an Object (eg Array, Map, Set, Function, Iterator, Generator, etc). Primitive
values are allowed by default (with strict: false
) and return an empty array (of type never[]
).
Optional
options: Toptionsthe KeysOptions
to control the output of keys / props
Array of keys or props of the input value, typed according to the input value & options, but limited to string
or symbol
only. Use keys()
for the full props types.
A Simplified typings version of
keys()
that returns onlystring
orsymbol
props types of the input value, based on the options.Note: implementation / runtime is the same as
keys()
, only the returned typings change to the simplified version!