On Wed, 23 Sep 2009 23:03:38 +0200, Erik Arvidsson <[email protected]> wrote:

What are the arguments against adding a containsKey method? This would
map consistently to the in operator and hasOwnProperty in ES5.
object.containsKey(name) would be mapped to [[GetOwnProperty]](object,
name) !== undefined in ES5 meta language. That seems most consistent
to existing APIs.


A containsKey or hasItem, preferably, would still not address the ambiguity issue.


Reply via email to