ensure-natural-number-value.js 196 B

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