Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Export assignment isEnumerableProperty

  • isEnumerableProperty(value: any, property: any): boolean
  • Tests if an object's own property is enumerable.

    Parameters

    • value: any

      value to test

    • property: any

      property to test

    Returns boolean

    boolean indicating if an object property is enumerable

    Example

    var beep = {
        'boop': true
    };
    
    var bool = isEnumerableProperty( beep, 'boop' );
    // returns true

    Example

    var beep = {
        'boop': true
    };
    
    var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
    // returns false