db.js
This file
Path
examples/mvc/db.js
15 lines · 406 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 82731da point at it.
Merge pull request #1503 from shesek/settings-inheritanceTJ Holowaychukbefore adoption82731da
lines 1–15why, one step back12// faux database34var pets = exports.pets = [];56pets.push({ name: 'Tobi', id: 0 });7pets.push({ name: 'Loki', id: 1 });8pets.push({ name: 'Jane', id: 2 });9pets.push({ name: 'Raul', id: 3 });1011var users = exports.users = [];1213users.push({ name: 'TJ', pets: [pets[0], pets[1], pets[2]], id: 0 });14users.push({ name: 'Guillermo', pets: [pets[3]], id: 1 });15users.push({ name: 'Nathan', pets: [], id: 2 });