I want to use Lodash to return true when an object contains in any of its values, a match for a partial string. I've tried this with _.includes as follows.
const ob = {first: "Fred", last: "Flintstone",}
const search = "stone";
const result = _.includes(ob, search)
console.log(result); // false
I've also tried this using a regular expression instead of a string for the search term.
const search = /stone/gi;
Both times result returns false. I want result to return true. How can I do this in Lodash?