ceylon/ceylon-js — comment on commit 6c40daa2262dfdf698cdf67963eead4b26798dd1
File:  line 0
By chochos:

How about this: We define a function in the language module, which does nothing:

function donothing() {}

And then nullsafe invoke is like this: `function($){return $!==null?$.f:donothing}(obj)()`

So if `obj` is null, the function returns `donothing` which is then called, and nothing happens. But if `obj` exists, `f` is returned and then called. That works even if `f` has parameters (they're just ignored by donothing).