Lodash is a JavaScript library which provides utility functions for dealing with javascript objects and arrays…