0
如何使用單行語句使用Ramdajs將數組中的元素附加到另一個數組?如何將數組中的元素附加到另一個數組?
state = {
items:[10,11,]
};
newItems = [1,2,3,4];
state = {
...state,
taggable_friends: R.append(action.payload, state.taggable_friends)
};
//now state is [10,11,[1,2,3,4]], but I want [10,11,1,2,3,4]