* Retrieves the next date part in the list of parts.
()
| 1847 | * Retrieves the next date part in the list of parts. |
| 1848 | */ |
| 1849 | nextPart(): Option.Option<DatePart> { |
| 1850 | const currentPartIndex = Option.getOrElse(Arr.findFirstIndex(this.parts, (part) => part === this), () => 0) |
| 1851 | return Arr.findFirst(this.parts.slice(currentPartIndex + 1), (part) => !part.isToken()) |
| 1852 | } |
| 1853 | |
| 1854 | /** |
| 1855 | * Retrieves the previous date part in the list of parts. |