Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/shallowEqual

Index

References

Functions

References

Renames and re-exports isShallowEqual

Functions

  • isShallowEqual(test1: any, test2: any): boolean
  • Returns true if its arguments are equivalent is shallow equal terms, false otherwise.

    example
     isShallowEqual(1, 1);                           //=> true
    isShallowEqual(1, '1'); //=> false
    isShallowEqual([1, 2, 3], [1, 2, 3]); //=> true
    isShallowEqual({ a: { b: 1 }}, { a: { b: 1 }}); //=> false

    Parameters

    • test1: any
    • test2: any

    Returns boolean

Generated using TypeDoc