docs: function isPositiveFiniteInteger(value, errorMessage) {
          value = Number(value);
          if (isNaN(value) || !isFinite(value) || value < 0 || value % 1 !== 0) {
              throw new RangeError(errorMessage.replace('$', value));
          }
          return value;
      }