own in
Closed this issue · 2 comments
edef1c commented
It'd be nice to have a shortcut for hasOwnProperty.
Proposed syntax:
own k in o
Proposed compilation:
var own$ = {}.hasOwnProperty;
own$.call(o, k);
satyr commented
That syntax doesn't work.
See also: jashkenas/coffeescript#2103
edef1c commented
o has k
is fine with me too - just some kind of syntax for this would rock.