/**
 * Add group separator to value eg. 1000 > 1,000
 */
export var addSeparators = function addSeparators(value) {
  var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ',';
  return value.replace(/\B(?=(\d{3})+(?!\d))/g, separator);
};