which-collection efficiently determines the type of native collection (Map, Set, WeakMap, WeakSet) a given JavaScript object resembles. It offers a reliable check, differentiating between native collections and regular objects with similar properties. Useful for libraries that need to handle different collection types appropriately, this package simplifies type detection and enhances code robustness when working with diverse data structures. It provides a simple and performant way to identify collection instances.