I need to use lodash's flow function in my project and started learning from an example below it looks ok but getting Expected a function error.
Source Code:
const foundUser = {
charData: []
};
const rows = [{ok: 1, blah: 'nope'}];
const myFunction = d => ({ ...d, myProp: 4 });
_.flow([
_.assign(rows[0]),
myFunction,
_.omit('blah'),
])(foundUser);
Can anyone help me, please?