es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

fix(sample): include "undefined" in return union type

Open screendriver opened this issue 4 months ago • 6 comments

sample() returns undefined when an empty array is given. This should also be reflected in the return type.

screendriver avatar Aug 08 '25 07:08 screendriver