Comments (6)
Also you should note that Object.keys
can be used in environments that support it to get an array of own properties to then iterate over.
from javascript-garden.
Eh, this is another engine-specific note that probably shouldn't be included.
from javascript-garden.
Before a document recommends others use some pattern/code snippet I think it's only reasonable that it should also give them a heads up to potential/common issues of using it.
from javascript-garden.
Can you elaborate on this, maybe with reference, so that we can determine if this is big enough an issue to make a note about? I personally don't remember the Safari issue (I believe I have heard of the IE one before, but can't remember which version)
from javascript-garden.
A test is here, there are differences in IE(6-8), Chrome, FF 3.6.x, FF4RC, Opera 11, Safari 5.0.3
Multiple iterations for shadowed properties was a bug found in Safari 2
from javascript-garden.
See this post by Tobie Langel for an explanation of the Safari 2 bug.
from javascript-garden.
Related Issues (20)
- notes about the typeof operator
- notes about type-casting
- footnote for requestAnimationFrame and setImmediate HOT 2
- Length property of Array is not actually the items count HOT 3
- Пропущена буква (not to write. I had to fork. please remove) HOT 1
- Mistake in the section "The Array Constructor" HOT 1
- Wrong output value written in Why Not to Use eval Section HOT 4
- Topic Name : Hidden Use of eval
- ES translation issue in "Notation of Keys" section. HOT 5
- Incorrect detail in section `#object.prototype` HOT 2
- 使用typeof检测一个未定义的变量时,是不会报错的。 HOT 3
- Issue with function evaluation HOT 1
- Mistake in "scopes and namespaces" HOT 2
- The github page is not work HOT 2
- GitHub Pages Website Copyright Styling Error
- move to MDN HOT 1
- The instanceof Operator
- Live Link Issue HOT 1
- Is project still alive? HOT 3
- 链接打不开了吧??
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-garden.