jefflembeck’s avatarjefflembeck’s Twitter Archive—№ 22,224

    1. Fun Opinion™ with JavaScript: If you have a function that returns a Promise, have it be able to take Promises as arguments as well, then resolve them first within the function. like this: const [x, y] = await Promise.all([Promise.resolve(arg1), Promise.resolve(arg2)])
  1. …in reply to @jefflembeck
    I learned to do this by working with isntitvacant for the past 4.5 years. The way I think about reading and writing code and data in general sure has changed a lot