Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

stripMilliseconds

  • stripMilliseconds<P, R>(momentInstance: P): R
  • Type parameters

    • P: undefined | null | Moment

    • R = P extends Moment ? Moment : undefined

    Parameters

    • momentInstance: P

    Returns R

    a clone of provided Moment instance with milliseconds set to zero, or undefined if a nullish value was provided.

Generated using TypeDoc