Files
developer-roadmap/lib/author.js
2019-11-13 23:06:07 +04:00

4 lines
144 B
JavaScript

import authors from "storage/authors";
export const findByUsername = (username) => authors.find(author => author.username === username) || {};