to-pos-integer.js 150 B

123456789
  1. "use strict";
  2. var toInteger = require("./to-integer")
  3. , max = Math.max;
  4. module.exports = function (value) {
  5. return max(0, toInteger(value));
  6. };