Skip to content
Myr

db.js

This file

Path

examples/mvc/db.js

15 lines · 406 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 8ac3e80 point at it.

Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption8ac3e80

lines 1–15why, one step back
1
2// 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 });