Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
karmazynt
on 25/09/2013, 09:14:05 UTC
in javascript you don't have to write:
if (typeof _.first(bucket) == 'undefined')

you just could write:
if (_.first(bucket))

but this will catch also null values and other falsy values, it can be good thing, it depends.
If want only check for undefinied you can write:
if (_.first(bucket) === undefined)