-
-
Couldn't load subscription status.
- Fork 0
arguments
Nicholas Berlette edited this page Jun 19, 2025
·
1 revision
function isArguments(it: unknown): it is IArguments;Check if the given value is an instance of the native Arguments object, which
is a special type of Array-like object that corresponds to the binding arguments
of a particular JavaScript function.
This check will return false for any other kind of array-like object.
| Name | Info |
|---|---|
it |
The value to check. |
true if the value is an Arguments object, false otherwise.
Indexed Collections
import { isArguments } from "jsr:@nick/is/arguments";
function foo() {
console.log(isArguments(arguments)); // true
console.log(isArguments([1, 2, 3])); // false
}