Pardon a silly question, but what's the best way to determine if a variable is an array in JavaScript? I need to treat it differently depending of if it's a string or an array. Thanks in advance.