UNPKG

bfx-api-node-models

Version:

Object models for usage with the Bitfinex node API

13 lines (11 loc) 189 B
'use strict' /** * Validates a bool * * @param {*} v - value * @returns {string} error - null if valid */ module.exports = (v) => (!Array.isArray(v) ? 'must be an array' : null )