Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-inherited-property/docs/types/index.d"

Index

Functions

Export assignment isInheritedProperty

  • isInheritedProperty(value: any, property: any): boolean
  • Tests if an object has an inherited property.

    Parameters

    • value: any

      value to test

    • property: any

      property to test

    Returns boolean

    boolean indicating if an object has an inherited property

    Example

    var obj = {
        'boop': true
    };
    
    var bool = isInheritedProperty( obj, 'toString' );
    // returns true

    Example

    var obj = {
        'boop': true
    };
    
    var bool = isInheritedProperty( obj, 'boop' );
    // returns false

    Example

    var obj = {
        'boop': true
    };
    
    var bool = isInheritedProperty( obj, 'bap' );
    // returns false