/
githubmirror
/
express
Обзор
Документация
Войти
/
githubmirror
/
express
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.16.3
examples/mvc/db.js
14 строк
406 B
Douglas Christopher Wilson
lint: add eslint rules that cover editorconfig
06 авг 2017, 06:37
06 авг 2017, 06:37
56e90e3
Код
Авторство
О чём код?
// faux database var pets = exports.pets = []; pets.push({ name: 'Tobi', id: 0 }); pets.push({ name: 'Loki', id: 1 }); pets.push({ name: 'Jane', id: 2 }); pets.push({ name: 'Raul', id: 3 }); var users = exports.users = []; users.push({ name: 'TJ', pets: [pets[0], pets[1], pets[2]], id: 0 }); users.push({ name: 'Guillermo', pets: [pets[3]], id: 1 }); users.push({ name: 'Nathan', pets: [], id: 2 });