Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25972
| From | Une Bévue <unbewusst.sein@fai.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: when have we to use obj.hasOwnProperty(key) ? |
| Date | 2014-10-22 10:22 +0200 |
| Organization | Posted through ALPHANET (http://www.alphanet.ch/) |
| Message-ID | <m27pg8$7jv$2@shakotay.alphanet.ch> (permalink) |
| References | <m25b7r$554$1@shakotay.alphanet.ch> <2573276.tGzZJPnWE1@PointedEars.de> |
Le 21/10/14 19:27, Thomas 'PointedEars' Lahn a écrit : > It is unclear what you are asking. However, if you want a reference to an > object that does not inherit any properties, use > > var obj = Object.create(null); > > If this method is implemented as specified, you do not have to use > obj.hasOwnProperty() when iterating over the object's properties with a for- > in statement. Fine, your answer is clearly what I was asking for.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
when have we to use obj.hasOwnProperty(key) ? Une Bévue <unbewusst.sein@fai.invalid> - 2014-10-21 12:06 +0200
Re: when have we to use obj.hasOwnProperty(key) ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2014-10-21 13:21 -0200
Re: when have we to use obj.hasOwnProperty(key) ? Une Bévue <unbewusst.sein@fai.invalid> - 2014-10-21 17:26 +0200
Re: when have we to use obj.hasOwnProperty(key) ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-21 19:27 +0200
Re: when have we to use obj.hasOwnProperty(key) ? Une Bévue <unbewusst.sein@fai.invalid> - 2014-10-22 10:22 +0200
csiph-web