Returns true if the key is defined in the provided collection.
has(collection, key): boolean;A functional alternative to collection.has(key) which will also work with plain Objects and Arrays as an alternative for collection.hasOwnProperty(key).