Skip to content

Commit

Permalink
added properties to examples/js/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 25, 2017
1 parent fc64951 commit 387f558
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/js/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ async function main () {
let args = params.map (param =>
param.match (/[a-zA-Z]/g) ? param : parseFloat (param))

console.log (await exchange[methodName] (... args))
if (typeof exchange[methodName] == 'function') {
log (await exchange[methodName] (... args))
} else {
log (exchange[methodName])
}

}
}
Expand Down

0 comments on commit 387f558

Please sign in to comment.