Sha256: 1bb5ba046a073a875a841b4af514282eccb389bd88a7ca646df11676f904474a
Contents?: true
Size: 224 Bytes
Versions: 30
Compression:
Stored size: 224 Bytes
Contents
"use strict"; var coerceToSafeInteger = require("../safe-integer/coerce"); module.exports = function (value) { value = coerceToSafeInteger(value); if (!value) return value; if (value < 0) return null; return value; };
Version data entries
30 entries across 29 versions & 2 rubygems