Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-empty-object/docs/types/index.d"

Index

Functions

Functions

Export assignment isEmptyObject

  • isEmptyObject(value: any): boolean
  • Tests if a value is an empty object.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is an empty object

    Example

    var bool = isEmptyObject( {} );
    // returns true

    Example

    var bool = isEmptyObject( { 'beep': 'boop' } );
    // returns false

    Example

    var bool = isEmptyObject( [] );
    // returns false