db.js
This file
Path
examples/mvc/db.js
14 lines · 405 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than ad3ca25 point at it.
deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 1–14why, one step back1// faux database23var pets = exports.pets = [];45pets.push({ name: 'Tobi', id: 0 });6pets.push({ name: 'Loki', id: 1 });7pets.push({ name: 'Jane', id: 2 });8pets.push({ name: 'Raul', id: 3 });910var users = exports.users = [];1112users.push({ name: 'TJ', pets: [pets[0], pets[1], pets[2]], id: 0 });13users.push({ name: 'Guillermo', pets: [pets[3]], id: 1 });14users.push({ name: 'Nathan', pets: [], id: 2 });