mizzkey/src/misc/get-user-name.ts

6 lines
124 B
TypeScript
Raw Normal View History

import { IUser } from '../models/user';
export default function(user: IUser): string {
return user.name || '名無し';
}