Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isObjectLike

  • isObjectLike(value: any): boolean
  • Tests if a value is object-like.

    Notes

    • Return values are the same as would be obtained using the built-in typeof operator except that null is not considered an object.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is object-like

    Example

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

    Example

    var bool = isObjectLike( [] );
    // returns true

    Example

    var bool = isObjectLike( null );
    // returns false