I hereby claim:
- I am bolatovumar on github.
- I am ubolator (https://keybase.io/ubolator) on keybase.
- I have a public key ASAA28OFBQb7MC1SumgK7qrZHTRgcE1Od1IXdKTVWlPeaAo
To claim this, I am signing this object:
type KVPair = {k: PropertyKey; v: unknown} | |
type OmitKV<T extends KVPair, V> = T extends {v: V} ? never : T; | |
type Unionize<T extends object> = { | |
[k in keyof T]: {k: k; v: T[k]} | |
}[keyof T]; | |
type Objectify<T extends KVPair> = { | |
[k in T['k']]: Extract<T, {k: k}>['v'] | |
}; | |
type OmitProperties<T extends object, V> = Objectify<OmitKV<Unionize<T>, V>>; |
// Resolves when all promises are done resolving | |
function processItems(promises) { | |
return Promise.all(promises.map(el => el())); | |
} | |
// Simulates asyncronous work in range of 0 to 5 seconds | |
function processItem(item) { | |
console.log(`processing item ${item}`); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: