UNPKG

lightning

Version:
15 lines (12 loc) 299 B
/** Determine if object is an expected LND Object { [lnd]: <LND Object> [method]: <Method Name String> [type]: <Method Type String> } @returns <Is Expected LND Object Bool> */ module.exports = ({lnd, method, type}) => { return !!lnd && !!lnd[type] && !!lnd[type][method]; };