Checks if the given array is empty.

Type signature

(xs?: any) => boolean

Examples

none([]);
// ⇒ true
Try in REPL
none([1, 2, 3]);
// ⇒ false
Try in REPL

Questions

  • How to check if an array is empty?

TypeScript sourceJavaScript source