Was looking through some source code and kept coming across this weird function creating bracket notation using lodash. I suspect that it is some lodash construct, but I don’t know what to search to read some docs on it.
Does any one know what this is called/have links to docs?
Thanks!
function findMessageInTree(desiredName, rootNode) {
return rootNode.name === desiredName ? rootNode : (0, _lodash.find)(rootNode.replies.map((0, _lodash.partial)(findMessageInTree, desiredName)));
}