(value: string)
| 1962 | /** |
| 1963 | * Retrieves the previous date part in the list of parts. |
| 1964 | */ |
| 1965 | previousPart(): Option.Option<DatePart> { |
| 1966 | const currentPartIndex = Arr.findFirstIndex(this.parts, (part) => part === this) |
| 1967 | if (Option.isSome(currentPartIndex)) { |
| 1968 | return Arr.findLast(this.parts.slice(0, currentPartIndex.value), (part) => !part.isToken()) |
| 1969 | } |
no outgoing calls
no test coverage detected