Skip to content

Instantly share code, notes, and snippets.

View Snoupix's full-sized avatar
⚙️
Rust enjoyer

Snoupix

⚙️
Rust enjoyer
View GitHub Profile
const appName = "AppName";
export type LocalStorage = {
theme: "dark" | "light"
items: Array<Item>
}
export type Item = {
id: string
}
@Snoupix
Snoupix / challenge.ts
Last active April 28, 2023 10:14
Quest challenge Wild Code School
type User = {
name: string
age?: number
birthday?: string
};
const prettyPrintWilder = (users: Array<User>): void => {
users.map((user) => {
console.log(
user.age != undefined