Checks if the given object is empty.

Type signature

<T>(xs?: GenericObject<T>) => boolean

Examples

none({});
// ⇒ true
Try in REPL
none(null);
// ⇒ true
Try in REPL
none({ a: 1 });
// ⇒ false
Try in REPL

Questions

  • How to check if an object is empty?
  • How to check if an object is null or undefined?

TypeScript sourceJavaScript source