Files
developer-roadmap/lib/author.js

3 lines
143 B
JavaScript
Raw Normal View History

2019-11-01 04:14:38 +04:00
import authors from "../data/authors";
export const findByUsername = (username) => authors.find(author => author.username === username) || {};