Skip to content

Commit

Permalink
types+grammar: apA, fixing code sample typos, closes getify#389
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Mar 15, 2015
1 parent f081d60 commit f3aeff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types & grammar/apA.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ After almost a week of analysis/debugging, I found that the site in question had
```js
// Netscape 4 doesn't have Array.push
Array.prototype.push = function(item) {
this[this.length-1] = item;
this[this.length] = item;
};
```

Expand All @@ -130,7 +130,7 @@ Next, don't unconditionally define extensions (because you can overwrite natives
if (!Array.prototype.push) {
// Netscape 4 doesn't have Array.push
Array.prototype.push = function(item) {
this[this.length-1] = item;
this[this.length] = item;
};
}
```
Expand Down

0 comments on commit f3aeff0

Please sign in to comment.