@nevware21/ts-utils

    Function isDate

    • Check if an object is of type Date

      Parameters

      • value: any

      Returns value is Date

      import { isDate } from "@nevware21/ts-utils";

      let _theDate = null;

      function getSetDate(newDate?: any) {
      _theDate = isDate(newDate) ? newDate : new Date();

      return _theDate;
      }
    MMNEPVFCICPMFPCPTTAAATR