Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "object/is-empty-except-for"

Index

Functions

Functions

isEmptyExceptFor

  • Check if an object is empty except for a single key.

    Parameters

    • obj: UnknownObject

      The object to check.

    • Rest ...keys: Array<string | number>

      The key(s) to check if it is the only key in that (duplicates are ignored).

    Returns boolean

    True if the given object is empty except for a single key, false otherwise.

Generated using TypeDoc