Given the array below which contains objects with nested arrays, my goal is to retrieve the value 'AUS Eastern Standard Time' when 'Australia/Melbourne' is passed to the array.
Although I attempted to use the code
var winTimeZone = arr.find(tz => tz.utc && tz.utc.includes('Australia/Melbourne));
The Servicenow platform does not support the find method. I would appreciate any alternative solutions. Thank you
var arr =[
{
"isdst": false,
"offset": "09:30:00",
"text": "(UTC+09:30) Darwin",
"utc": [
"Australia/North",
"Australia/Darwin"
],
"value": "AUS Central Standard Time"
},
{
"isdst": true,
"offset": "10:00:00",
"text": "(UTC+10:00) Canberra, Melbourne, Sydney",
"utc": [
"Australia/Sydney",
"Australia/Melbourne",
"Australia/Hobart",
"Australia/Victoria",
"Australia/ACT",
"Australia/Canberra",
"Australia/NSW",
"Australia/Tasmania",
"Australia/Currie"
],
"value": "AUS Eastern Standard Time"
}]