<@U06V253M4> in your rabbitsdk code, you've got th...
# cfml-general
w
@bdw429s in your rabbitsdk code, you've got the following in a few methods:
var nullMe = ()=>{};
then later on you use it like so:
"result" : ( isNull( results ) ? nullMe() : results)
. is this just a cross-engine compatible way of achieving
nullValue()
? is it fundamentally equivalent to
javacast("null","")
?
s
not-a-brad but I believe the answer here is 'yes'
1
w
i admittedly haven't used the most recent versions of acf, but i thought null handling was more robust there. so the options are the arrow function above or javacast null in acf to yield a null value?
s
I don't think you have to use an arrow function there. You could just
function nullMe() {}
w
but that's not very brad-like
s
no, brad would use nullBox
🎉 1
turn that one up to 11 = black hole
😆 1
w
don't touch it. don't even point at it
ok, well you answered my question, thanks
b
WWBD
b
Sorry, on holiday this week. That is, in fact, a cross engine way to return null. I just never really cared for the javacast method for whatever reason.