satyr/coco

own in

Closed this issue · 2 comments

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);

That syntax doesn't work.

See also: jashkenas/coffeescript#2103

o has k is fine with me too - just some kind of syntax for this would rock.