function requireSizeLike(value, property) {
  if (typeof value === 'number') {
    return value;
  }
  return requireSize(value, property);
}
@param {any} value The value.
@param {string} property The property.
@return {number|Array<number>} A number or an array of two numbers.