Skip to content

Commit

Permalink
docs: Add support for Deno for isArrayLike
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Jul 21, 2024
1 parent d4081c0 commit 925ee3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/predicate/isArrayLike.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isLength } from './isLength';
import { isLength } from "./isLength.ts";

/**
* Checks if `value` is array-like.
Expand All @@ -15,5 +15,6 @@ import { isLength } from './isLength';
* isArrayLike(undefined); // false
*/
export function isArrayLike(value: unknown): value is ArrayLike<unknown> {
return value != null && typeof value !== 'function' && isLength((value as ArrayLike<unknown>).length);
return value != null && typeof value !== "function" &&
isLength((value as ArrayLike<unknown>).length);
}

0 comments on commit 925ee3b

Please sign in to comment.