The _.includes method is one of the collection methods in lodash that work with Arrays, and Objects in general. In addition this method can also be used with strings. The nature of the method is one where it can be used as a means to test if a value is included in a collection.
Here I have an example of the _.includes method that is used to find if a string contains a given substring.
The includes method can also be used as a way to find if a value is in an array as well.
When working with an object the method will return true if one of the object values is equal to the value given, but not with the key names.
An index value can be given as the third argument to the method.
When I give a negative from index value it counts as the index value from the end of the collection.