Skip to content

Instantly share code, notes, and snippets.

🌋
erupting with creativity

Chase Moskal chase-moskal

🌋
erupting with creativity
Block or report user

Report or block chase-moskal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chase-moskal
chase-moskal / locale2.js
Last active Aug 20, 2019
quick es-module adaptation of npm module "locale2"
View locale2.js
/*
code adapted from "locale2" v2.3.1
- https://www.npmjs.com/package/locale2
- https://github.com/moimikey/locale2
- adapted by Chase Moskal (@chase-moskal)
------
@chase-moskal
chase-moskal / promise-all-keys.ts
Last active Oct 9, 2018
Typescript function to await all promised object properties
View promise-all-keys.ts
type Unpacked<T> =
T extends (infer U)[]
? U
: T extends (...args: any[]) => infer U
? U
: T extends Promise<infer U>
? U
: T
@chase-moskal
chase-moskal / tree-node.ts
Last active Oct 9, 2018
typescript mappable tree node class
View tree-node.ts
type Unpacked<T> =
T extends (infer U)[]
? U
: T extends (...args: any[]) => infer U
? U
: T extends Promise<infer U>
? U
: T
You can’t perform that action at this time.