New issue
 Projects > js > Issues > Bug #3840

Replace hasOwnProperty / in for checking existence

Bug #3840 [Closed]
pandamicro 2014-01-25 04:12 . Updated almost 3 years ago

hasOwnProperty is slower than other methods to check existence of a key

pandamicro 2014-01-26 10:23
  • Status changed from New to Closed
  • % Done changed from 0 to 100

All usage replaced with obj[key] / obj[key] !== undefined / obj.key

Atom PDF

Status:Closed
Start date:2014-01-25
Priority:Normal
Due date:
Assignee:pandamicro
% Done:

100%

Category:-
Target version:v3.0 alpha

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.