Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/get-prototype-of/docs/types/index.d"

Index

Functions

Functions

Export assignment getPrototypeOf

  • getPrototypeOf(v: any): Object | null
  • Returns the prototype of a provided object.

    Notes

    • In contrast to the native Object.getPrototypeOf, this function does not throw when provided null or undefined. Instead, similar to when provided any value with no inherited properties, the function returns null.
    • Value arguments other than null or undefined are coerced to objects.

    Parameters

    • v: any

    Returns Object | null

    prototype

    Example

    var proto = getPrototypeOf( {} );
    // returns {}