Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/object

Index

References

Functions

References

Renames and re-exports isObject

Functions

  • isObject<T>(test: unknown): test is T
  • Checks if test is object.

    example
     isObject({ a: 'test' });  //=> true
    isObject(new Foo()); //=> true
    isObject(null); //=> false

    Type parameters

    • T = Record<any, any>

    Parameters

    • test: unknown

      The value to check.

    Returns test is T

    Returns true if test is object, else false.

Generated using TypeDoc