Skip to content

Commit aae00da

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

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
@@ -444,7 +444,7 @@ function getValidCacheMap<K, V, C>(
444444
}
445445

446446
// Private
447-
function isArrayLike(x: any): boolean {
447+
function isArrayLike<T>(x: any): x is ArrayLike<T> {
448448
return (
449449
typeof x === 'object' &&
450450
x !== null &&

0 commit comments

Comments
 (0)