Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isSameType

  • isSameType(a: unknown, b: unknown): boolean
  • Checks if the given values are of same type preventing NaN and Number same type check.

    example

    isSameType(true, false); // true isSameType(1, 3); // true isSameType({}, []); // false isSameType('', null); // false

    Parameters

    • a: unknown

      The first value to check.

    • b: unknown

      The other value to check.

    Returns boolean

    Whether the values are of same type.

Legend

  • Function

Generated using TypeDoc