biofriction-wp-theme/node_modules/es5-ext/object/ensure-natural-number-value.js

10 lines
235 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
"use strict";
var ensure = require("./ensure-natural-number")
, isValue = require("./is-value");
module.exports = function (arg) {
if (!isValue(arg)) throw new TypeError(arg + " is not a natural number");
return ensure(arg);
};