Why can't I call an array method on a function's arguments?

前端 未结 8 1305
鱼传尺愫
鱼传尺愫 2020-12-03 05:07

I have a function that can accept any number of arguments...

const getSearchFields = () => {        
    const joined = arguments.join(\'/\'); 
};
         


        
8条回答
  •  伪装坚强ぢ
    2020-12-03 05:27

    If your are getting while posting http request in angular4 user HttpHeaders. Please check below answer. After usring HttpHeaders my issue is resolved.

    this.headers  = new HttpHeaders({ 'Authorization': token1, 'X-IBM-Client-Id': 'ffffdffffdd' });
    

    values.join is not a function in the file http.es5.js Angular 4

提交回复
热议问题