isMonth
Returns whether a value is a Month instance. It is a TypeScript type guard and
also backs the instanceof Month check.
API Reference
Signature
Parameters
Returns
Returns true only for genuine Month instances; false for strings, plain
objects (including toObject() output), Date, null, and undefined.
Agent Contract
Agent Notes
- Use
isMonthto narrow anunknownbefore calling instance methods. toObject()output is a plain object, soisMonthreturnsfalsefor it.