import { Collection } from "https://deno.land/x/collection@v1.0.1/src/Collection.ts";
Searches for the key of a single item where the given function returns a truthy value. This behaves like Array.findIndex(), but returns the key rather than the positional index.
Examples
collection.findKey(user => user.username === 'Bob');
collection.findKey(user => user.username === 'Bob');