Given the following data formats for ReleaseDate:
- 2014-09-23 09:00:00.923Z
- /Date(1407369600210)/
You can get the above information from an API with the following object dot-notation:
result.data.Items[0].ReleaseDate
However, there are cases where this particular data is undefined but how do you check if it is undefined and assign a default value/var?
Thanks in advance.