I have an object that looks like
var foundUser = {
charData: []
}
which then I load an object from a database using mysql and then I call
_.assignIn(foundUser, rows[0]);
But I get a few extra properties that I don't need (this isn't solvable by using select)
So I call
foundUser = _.omit(foundUser, ['blah']);
But it would be nice if I could just do
_.assignIn(foundUser, rows[0]).omit(rows[0], ['blah']);
But that throws an error, am I doing it wrong or is there another way this can be done?