I\'m trying to write a function that either accepts a list of strings, or a single string. If it\'s a string, then I want to convert it to an array with just the one item so
A simple function for testing if an input value is an array is the following:
function isArray(value) { return Object.prototype.toString.call(value) === '[object Array]'; }
This works cross browser, and with older browsers. This is pulled from T.J. Crowders' blog post