modern-async icon indicating copy to clipboard operation
modern-async copied to clipboard

fix(asyncFind): return type should include undefined

Open dodas opened this issue 10 months ago • 0 comments

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.

dodas avatar Feb 17 '25 21:02 dodas