function isInteger(value) {
  return value === parseInt(value, 10)
}
Helper method for determining if given value can be an integer

@param {*} value the value to check
@returns {boolean} whether or not the value can be coerced to an integer