My objects:
[
{
description: \'object1\', id: 1
},
{
description: \'object2\', id: 2
}
{
description: \'object3\
You don't need Lodash or Ramda or any other extra dependency.
Just use the ES6 find() function in a functional way:
savedViews.find(el => el.description === view)
Sometimes you need to use 3rd-party libraries to get all the goodies that come with them. However, generally speaking, try avoiding dependencies when you don't need them. Dependencies can: