Skip to content
Open
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ if (!db.people) {

// Update Oskar’s name to use his nickname. (This will automatically update db/people.js)
db.people[2].name = 'Osky'

// Adding another person to the family
db.people.push({name: 'Donald', age: 74})

// Removing is done with mutable operations like .pop and .splice
db.people.pop()
}
```

Expand Down