That is one way to do it.

  • 0
    You guys have isnt in coffeescript? If i can use es6 i have converted just now.
  • 1
    I haven't used coffescript, but couldn't you just return value isnt null and value isnt undefined??
  • 2
    There is no need for a function like this. You can query whether a value is defined _and_ not null by using "?": "someValue?".
  • 0
    Or :
    Return value != null && value != undefined
  • 0
    if value aint nuthin and it aint fuckalll neither then uhh do some shit
Add Comment