UNPKG

landmark-serve

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

15 lines (12 loc) 271 B
/** * Registers or retrieves a list */ function list(arg) { if (arg && arg.constructor === this.List) { this.lists[arg.key] = arg; this.paths[arg.path] = arg.key; return arg; } return this.lists[arg] || this.lists[this.paths[arg]]; }; module.exports = list;