Javascript If Array Contains Different Type Elements How To Pick The

Javascript If Array Contains Different Type Elements How To Pick The