is-map@2.0.3
// Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
$ npm install is-map
downloads/wk
73,034,763
license
MIT
version
2.0.3
published
Mar 8, 2024
What is is-map?
is-map is a utility for reliably detecting whether a value is a JavaScript Map object, even across different execution contexts like iframes or realms where standard checks might fail. Developers use it when they need robust type checking for Maps in codebases that work with multiple JavaScript contexts or when dealing with objects that might spoof the Map type.
Links
Keywords
Maintainers
ljharb