Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/inherited-properties/docs/types/index.d"

Index

Functions

Export assignment inheritedProperties

  • inheritedProperties(value: any, level?: undefined | number): Array<string | symbol>
  • Returns an array of an object's inherited property names and symbols.

    Notes

    • If provided null or undefined, the function returns an empty array.
    throws

    second argument must be a positive integer

    Parameters

    • value: any

      input object

    • Optional level: undefined | number

      inheritance level

    Returns Array < string | symbol >

    a list of inherited property names and symbols

    Example

    var props = inheritedProperties( [] );
    // returns [...]