<reponame>thisandagain/micron-throttle
/**
 * XOR helper.
 *
 * @package restify-throttle
 * @author <NAME> <<EMAIL>>
 *         <NAME> <<EMAIL>>
 */

/**
 * Export
 */
module.exports = function () {
    var x = false;
    for (var i = 0; i < arguments.length; i++) {
        if (arguments[i] && !x) {
            x = true;
        } else if (arguments[i] && x) {
            return false;
        }
    }
    return x;
};