Back to Explore

inspect-js/which-collection

GitHub
2 watchersOpen source

Last release:

which-collection exports a function that tells you which built-in JavaScript collection type (Map, Set, WeakMap, WeakSet) a given value is. It works across realms without using `instanceof`, and it can detect the type even when Symbol.toStringTag is set. Useful for runtime type checks of collection objects.

Project status

  • The repository appears to have recent activity (last upstream push on 2026-03-19), but the publicly available package updates are sparse, with the latest published update being v1.0.2 on 2024-03-08.
  • Update cadence looks very low, with multi-year gaps between published updates (2019-11-13, 2020-01-26, 2024-03-08), suggesting maintenance mode rather than steady evolution.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.0.2

    v1.0.2 primarily modernizes the project tooling, publishing configuration, and test/coverage setup, and adds TypeScript typings. The functional runtime code change in index.js appears to be typing-only (JSDoc), but several packaging and module-resolution metadata changes could impact how consumers resolve the package. Release notes were not provided by the publisher, so most changes below are effectively undocumented.

    Features
  • v1.0.1

    Release v1.0.1 updates the package metadata and dependency versions, with no release notes provided by the publisher. The largest functional change in the diff is the addition of an npm package.exports map and version bump in package.json.

    Features
  • v1.0.0

    The release is v1.0.0 (published 2019-11-13) but no release notes were provided by the publisher. As a result, there is no documented information about new features, breaking changes, bug fixes, security updates, or migration steps in the available materials.