Why is this line of javascript not creating an instance of the array prototype? (The var I am interested in is formatSet)
var date = angular.copy(srcDate),
    d = '',
    yyyy = date.getFullYear() - 2,
    MM = date.getMonth() + 1,
    dd = date.getDate(),
    hh = date.getHours(),
    mm = date.getMinutes(),
    ss = date.getSeconds(),
    formatSet = [MM, dd, hh, mm, ss];
Forgive me if this is a duplicate, but the search terms are a little vague and everything I'm finding illustrates the use of Array.prototype.isArray(), with which I am familiar and still doesn't answer the question.
Also, in case I'm missing something, the scenario that arises are errors: formatSet.isArray and formatSet.forEach is not a function.
 
     
     
    