lib/index.js
function abortXHRRequest(uid, fn) {
  if (reqs.hasOwnProperty(uid)) {
    if (!reqs[uid]) return;

    if (fn) {
      fn();
    } else {
      reqs[uid].abort();
    }
    delete reqs[uid];
    return reqs;
  }
}
function abortXHRRequest(uid, fn) {
  if (reqs.hasOwnProperty(uid)) {
    if (!reqs[uid]) return;

    if (fn) {
      fn();
    } else {
      reqs[uid].abort();
    }
    delete reqs[uid];
    return reqs;
  }
}
function abortXHRRequest ( uid , fn ) { if ( reqs . hasOwnProperty ( uid ) ) { if ( ! reqs [ uid ] ) return ; if ( fn ) { fn ( ) ; } else { reqs [ uid ] . abort ( ) ; } delete reqs [ uid ] ; return reqs ; } }
abortXHRRequest
Abort a XHR request by 'uid'
@param {String} uid
@param {Function} optional function
@return {Object}
abortXHRRequest Abort a XHR request by uid