87
Stokka
8y

Client: "Can you make this totally dynamic function calling system 100℅ fault-proof?"
Me: "Hell yeah, hold my coffee"

Comments
  • 2
    If you know that the variable has been declared 100% you can just check if it's a truthy value which is anything but these

    null
    undefined
    NaN
    empty string ("")
    0
    false

    So if (car) then
    //Statement

    Thought it may be useful knowledge!
  • 3
    @BoyBiscuit Thank you for the advice, but the function's name comes from a DB and it's for an input generator, so i need to parse bad references :/
  • 1
    @Stokka oh that's fine I didn't the
    Think it would be applicable :)
  • 2
    I laughed so hard xD xD xD
Add Comment