modern-async
modern-async copied to clipboard
fix(asyncFind): return type should include undefined
Similar to Array.prototype.find, the return value of asyncFind should be Promise<T | undefined>, rather than Promise<T>, since undefined will be returned in case there is no match found.