scripts/core/types.js
function _equals(a, b) {
    if (a === b) {
        return true;
    }

    const aType = $type(a);

    if (aType != $type(b)) {
        return false;
    }

    if (aType == 'array') {
        return _arrEquals(a, b);
    }

    if (aType == 'object') {
        return _objEquals(a, b);
    }

    if (aType == 'date') {
        return +a == +b;
    }

    return false;
}
function _equals(a, b) {
    if (a === b) {
        return true;
    }

    const aType = $type(a);

    if (aType != $type(b)) {
        return false;
    }

    if (aType == 'array') {
        return _arrEquals(a, b);
    }

    if (aType == 'object') {
        return _objEquals(a, b);
    }

    if (aType == 'date') {
        return +a == +b;
    }

    return false;
}
function _equals ( a , b ) { if ( a === b ) { return true ; } const aType = $type ( a ) ; if ( aType != $type ( b ) ) { return false ; } if ( aType == 'array' ) { return _arrEquals ( a , b ) ; } if ( aType == 'object' ) { return _objEquals ( a , b ) ; } if ( aType == 'date' ) { return + a == + b ; } return false ; }
Compare two values for equality

@private
@param {*} a
@param {*} b
@returns {boolean}
Compare two values for equality