function requireNumber(value, property) {
  if (typeof value !== 'number') {
    throw new Error(`Expected a number for ${property}`);
  }
  return value;
}
@param {any} value The value.
@param {string} property The property.
@return {number} A number.