Javascript Check If Type Is String Array Example