UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

10 lines (7 loc) 235 B
"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); };