jashkenas/coffee-script — Issue #2103: introduce the has keyword as an alias for obj.hasOwnPropertyName(name)
Author: ollym
Created: 2012-02-04 16:17:36+00:00
State: open

We have the `of` operator but it would be nice to have the has operator too.

So like...

`if foo has 'bar' then foo.bar()` => `var __hasProp = Object.prototype.hasOwnProperty; if(__hasProp.call(foo, 'bar')) foo.bar()`