Create serialize/toString function which parses array of two dates, and outputs year/single date/array. For example, input: ``` json [ "1800-01-01", "1800-12-31" ] ``` Output: ``` 1800 ```
Create serialize/toString function which parses array of two dates, and outputs year/single date/array.
For example, input:
Output: