Commit a32ce61
committed
Use strict mode and use a safer for loop
We want to check to make sure that the property we're looking at is actually from the object, not from its prototype.1 parent 6a9e0b9 commit a32ce61
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | | - | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments