These are chat archives for opal/opal

28th
Dec 2015
Elia Schito
@elia
Dec 28 2015 00:43
@JelF I'm not sure to understand, you mean like the documentation you see with opal -hor API documentation like the one you find on http://rdoc.info ?
Alexandr Smirnov
@JelF
Dec 28 2015 09:48
nevermind
Elia Schito
@elia
Dec 28 2015 09:49
:)
jiayp
@jiayp
Dec 28 2015 13:55
undefine and null will eval to true in opal?
How do I return false in native js code?return ret || false?
Elia Schito
@elia
Dec 28 2015 14:06
@jiayp yes, they're considered unexpected values, at least as of now
@jiayp you can check for == null that is true for both null and undefined
return ret == null ? false : ret
Jamie Gaskins
@jgaskins
Dec 28 2015 17:35
@jiayp I do value || nil a lot in my JS unless I'm expecting JS-falsy values like empty strings/arrays/objects, 0, etc.