Custom extensions of the default JS Object.

Object

interface Object {
    constructor: Function;
    native?: boolean;
    override: (<T>(this, overrideProps) => void);
    hasOwnProperty(v): boolean;
    isPrototypeOf(v): boolean;
    propertyIsEnumerable(v): boolean;
    toLocaleString(): string;
    toString(): string;
    valueOf(): Object;
}

Properties

constructor: Function

The initial value of Object.prototype.constructor is the standard built-in Object constructor.

native?: boolean

Undocumented

override: (<T>(this, overrideProps) => void)

Type declaration

    • <T>(this, overrideProps): void
    • Type Parameters

      • T

      Parameters

      • this: T
      • overrideProps: {
            [key in string | number | symbol]?: T[key] extends ((...args) => any)
                ? (($super, ...params) => ReturnType<any[any]>)
                : never
        }

      Returns void

Undocumented

Methods

  • Determines whether an object has a property with the specified name.

    Parameters

    • v: PropertyKey

      A property name.

    Returns boolean

  • Determines whether an object exists in another object's prototype chain.

    Parameters

    • v: Object

      Another object whose prototype chain is to be checked.

    Returns boolean

  • Determines whether a specified property is enumerable.

    Parameters

    • v: PropertyKey

      A property name.

    Returns boolean

  • Returns a date converted to a string using the current locale.

    Returns string

  • Returns a string representation of an object.

    Returns string

  • Returns the primitive value of the specified object.

    Returns Object