Function keysS

  • A Simplified typings version of keys() that returns only string or symbol 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!

    Type Parameters

    Parameters

    • input: Tinput

      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[]).

    • Optionaloptions: Toptions

      the KeysOptions to control the output of keys / props

    Returns KeysS<Tinput, Toptions>[]

    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.