to-pos-integer.js 154 B

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