In this code snippet:
const {set} = require("lodash");
What does the {} do ?
It's destructuring assignment.
It's equivalent to
const set = require('lodash').set