computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
332 B
15 lines
332 B
3 years ago
|
import authors from '../content/authors.json';
|
||
|
|
||
|
export type AuthorType = {
|
||
|
username: string;
|
||
|
name: string;
|
||
|
twitter: string;
|
||
|
picture: string;
|
||
|
bio: string;
|
||
|
}
|
||
|
|
||
|
export function findAuthorByUsername(username: string): AuthorType | undefined {
|
||
|
return (authors as AuthorType[]).find(author => author.username === username);
|
||
|
}
|
||
|
|