Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const hasPropCount

  • hasPropCount(obj: unknown, count: number): boolean
  • Checks if the given object has the given number of properties.

    example

    hasPropCount({ wer: 'asd' }, 1); // true hasPropCount({}, 5); // false

    Parameters

    • obj: unknown

      The object to check.

    • count: number

      The number of properties to expect.

    Returns boolean

    Whether the object has the number of properties.

Legend

  • Function

Generated using TypeDoc