Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Add missing curly brace. Typo fix for a module import. #240

Merged
merged 13 commits into from
Apr 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/Iterators and Generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ for (let i in list) {

for (let i of list) {
console.log(i); // "4", "5", "6"
}
```

Another distinction is that `for..in` operates on any object; it serves as a way to inspect properties on this object.
Expand Down
4 changes: 2 additions & 2 deletions pages/Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class ZipCodeValidator {
```ts
import validator from "./ZipCodeValidator";

let validator = new validator();
let myValidator = new validator();
```

or
Expand Down Expand Up @@ -244,7 +244,7 @@ import zip = require("./ZipCodeValidator");
let strings = ["Hello", "98052", "101"];

// Validators to use
let validator = new zip.ZipCodeValidator();
let validator = new zip();

// Show whether each string passed each validator
strings.forEach(s => {
Expand Down
5 changes: 3 additions & 2 deletions pages/Symbols.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ Just like strings, symbols can be used as keys for object properties.
```ts
let sym = Symbol();

let obj = {};
let obj = {
[sym]: "value"
};

obj[sym] = "value";
console.log(obj[sym]); // "value"
```

Expand Down