Checks if the given arguments are all `Arrays`.

Type signature

<T>(...xs: T[]) => boolean

Examples

are([2, 3]);
// ⇒ true
Try in REPL
are([1, 2, 3], []);
// ⇒ true
Try in REPL
are([1, 2, 3], 8, [1, 3], "test");
// ⇒ false
Try in REPL

Questions

  • How to check if all the given values are arrays?

TypeScript sourceJavaScript source