get()

Returns the value within the provided collection associated with the provided key, or notSetValue if the key is not defined in the collection.

Method signature

get(collection, key, notSetValue?): any;

A functional alternative to collection.get(key) which will also work on plain Objects and Arrays as an alternative for collection[key].

;