ensure-natural-number-value.js 235 B

123456789
  1. "use strict";
  2. var ensure = require("./ensure-natural-number")
  3. , isValue = require("./is-value");
  4. module.exports = function (arg) {
  5. if (!isValue(arg)) throw new TypeError(arg + " is not a natural number");
  6. return ensure(arg);
  7. };