boolean.js 219 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 var isBoolean = require('../../is-boolean') module.exports = function (key, value) { if (!isBoolean(value)) { throw new Error('"' + value + '" is not a valid value for ' + key + '. Use `true` or `false`.') } }