Compares the equality of two items.

@param x The first item to compare.
@param y The second item to compare.
@returns {boolean} An indication as to whether or not x and y were equal.
function equals(x, y) {
    let rc = new RecurseCounter(1000);
    return _equals.call(null, x, y, rc);
}