I am having a state in redux store, I want to use function join() to join another value while dispatch but while using join() I get error join() is not a function.
var id = ['3','5']
dispatch({
type: UPDATE,
payload:{
name: id.join();//this doesn't work
}
})