Move any element to last position - for lodash users:
const array = ['A', 'B', 'C', 'D'] // output: A, B, C, D
// finds index of value 'B' and removes it
_.pull(array , 'B') // output: A, C, D
// adds value of 'B' to last position
_.concat(array , 'B') // output: A, C, D, B