isobj
JSON →The `isobj` package provides a highly focused utility function designed to determine if a given JavaScript value is an 'object literal', specifically designed to exclude arrays (`[]`) and `null`. Released as version `1.0.0` in April 2014, the package has seen no subsequent updates or maintenance, indicating it is an abandoned project. Its functionality, based on its usage examples and common patterns for such utilities, likely checks if the `typeof` operator returns 'object' while also ensuring the value is not `null` and not an array (`Array.isArray`). Notably, it *does* return `true` for instances like `new Date()` or `new RegExp()`, which are JavaScript objects but not strictly 'plain' object literals (i.e., created by `{}`). Due to its age and lack of modern JavaScript module support (it's CommonJS-only), developers are generally advised to implement this check directly using native JavaScript constructs or opt for more actively maintained utility libraries that offer broader compatibility and features.
Traffic · last 30 days ↑200% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇺🇦 Ukraine · 🇩🇪 Germany · 🇫🇷 France