I am trying to prevent the function from altering the original values stored in the array.
function timeDropDowns() {
return [
'12:30am', '1am', '1:30am', '2am',
];
}
var someVar = timeDropDowns();
console.log(typeof(someVar)); // this will return Object
The typeof(someVar) shows as an object. How can I change it to be recognized as an array instead? Thank you for your help!