Utils - huang2002/3h-test GitHub Wiki

Utils

/**
 * Namespace of utilities.
 */
namespace Utils {

    /**
     * Tells whether `a` and `b` are shallowly equal.
     */
    const compare: (a: unknown, b: unknown) => boolean;

    /**
     * Tells whether `a` and `b` are deeply equal.
     * (supports circular reference)
     */
    const compareDeeply: (a: unknown, b: unknown, cache?: Map<object, object>) => boolean;
}