I'm trying to merge two objects with lodash merge, but it doesn't work with symbols. Is there any alternative utility?
import {merge} from 'lodash';
import {Op} from 'sequelize';
const selectA = {
where: {
text: "something"
}
};
const selectB = {
where: {
date_from: {
[Op.lt]: Sequelize.literal('NOW()')
}
}
};
console.log(_.merge(selectA, selectB));
Output:
{ where: { text: 'something', date_from: {} } }