結果 : javascript check if type is string or object