db.js
This file
Path
examples/mvc/db.js
16 lines · 420 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 2027b87 point at it.
fix(deps): cookie@0.7.0Josh Bukerbefore adoption2027b87
lines 1–16why, one step back1'use strict'23// faux database45var pets = exports.pets = [];67pets.push({ name: 'Tobi', id: 0 });8pets.push({ name: 'Loki', id: 1 });9pets.push({ name: 'Jane', id: 2 });10pets.push({ name: 'Raul', id: 3 });1112var users = exports.users = [];1314users.push({ name: 'TJ', pets: [pets[0], pets[1], pets[2]], id: 0 });15users.push({ name: 'Guillermo', pets: [pets[3]], id: 1 });16users.push({ name: 'Nathan', pets: [], id: 2 });