Function constructor

Returns the constructor of an Object value, if it exists.

@todo: test @todo:

@todo: improve typings
@todo: handle BigInt separately
  • Type Parameters

    • T

    Parameters

    • val: T

    Returns undefined | Constructor<T>

    the constructor of the value if it exists, otherwise undefined