function isNumber (value, throwOnFalse = true) {
  if (typeof value === 'number') { return true }
  if (throwOnFalse) { throw new TypeError('Expected a number') }
  return false
}
@param {any} value
@param {boolean} [throwOnFalse]
@returns {value is number}