3 lines
143 B
JavaScript
3 lines
143 B
JavaScript
![]() |
import authors from "../data/authors";
|
||
|
|
||
|
export const findByUsername = (username) => authors.find(author => author.username === username) || {};
|