This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const appName = "AppName"; | |
export type LocalStorage = { | |
theme: "dark" | "light" | |
items: Array<Item> | |
} | |
export type Item = { | |
id: string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User = { | |
name: string | |
age?: number | |
birthday?: string | |
}; | |
const prettyPrintWilder = (users: Array<User>): void => { | |
users.map((user) => { | |
console.log( | |
user.age != undefined |