Function shallowEquals

  • Compare 2 objects or arrays by comparing elements to each other

    Parameters

    • item1: unknown[] | Record<string, unknown>
    • item2: unknown[] | Record<string, unknown>

    Returns boolean