結果 : how to use array in if condition in javascript