Lodash _.keepindexed() Method
Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.keepIndexed() method takes an array and a function as parameters and returns a new array filled with the non-null return results of the given function act