function isInteger (value) {
  if (typeof value === 'boolean') {
    return true
  }

  return isFinite(value)
    ? (value === Math.round(value))
    : false
}
Check if a number is integer
@param {number | boolean} value
@return {boolean} isInteger