function getXp(cr) {
  return parseInt(/\([,\d]*/g.exec(cr)[0].slice(1).replace(',', ''), 10);
}

function partialApply(func, index) {
  return function part() {
    func(index);
  };
}

export default {
  getXp,
  partialApply
};

function getXp(cr) {
  return parseInt(/\([,\d]*/g.exec(cr)[0].slice(1).replace(',', ''), 10);
}

function partialApply(func) {
  var args = [].slice.call(arguments, 1);
  return function part() {
    func.apply(null, args);
  };
}

export default {
  getXp,
  partialApply
};

Update partial apply func