結果 : javascript test if object is of type