UNPKG

bfx-api-node-models

Version:

Object models for usage with the Bitfinex node API

15 lines (12 loc) 232 B
'use strict' const _isBoolean = require('lodash/isBoolean') /** * Validates a bool * * @param {*} v - value * @returns {string} error - null if valid */ module.exports = (v) => (!_isBoolean(v) ? 'must be a bool' : null )