結果 : check if type is array or object javascript