Skip to content

Commit a113225

Browse files
kamilkisielagagoar
andauthored
Make isArrayLike a type guard for ArrayLike<T>
Co-authored-by: Gago <[email protected]>
1 parent 1da21e1 commit a113225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ function getValidCacheMap<K, V, C>(
448448
}
449449

450450
// Private
451-
function isArrayLike(x: any): boolean {
451+
function isArrayLike<T>(x: any): x is ArrayLike<T> {
452452
return (
453453
typeof x === 'object' &&
454454
x !== null &&

0 commit comments

Comments
 (0)