db.js
This file
Path
examples/mvc/db.js
14 lines · 405 bytes · JavaScript
Last changed by
Merge pull request #2008 from agchou/clean-up-codeJonathan Ongbefore adoption2e830ff
History of this fileTake it
The walk stopped after 200 commits: lines older than 34c83d7 point at it.
3.4.7Jonathan Ongbefore adoption34c83d7
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 });