mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
docs: Add support for Deno for isArrayLike
This commit is contained in:
parent
d4081c0674
commit
925ee3be50
@ -1,4 +1,4 @@
|
||||
import { isLength } from './isLength';
|
||||
import { isLength } from "./isLength.ts";
|
||||
|
||||
/**
|
||||
* Checks if `value` is array-like.
|
||||
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user