object-is
npmv1.1.6ES2015-compliant shim for Object.is - differentiates between -0 and +0
Overview
object-is is an npm package that eS2015-compliant shim for Object.is - differentiates between -0 and +0. The latest version is 1.1.6, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need eS2015-compliant shim for Object.is - differentiates between -0 and +0 and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of object-is.
Dependencies
Runtime (2)
Dev (12)
Used by
Popular packages that depend on object-is.
Alternatives to object-is
ES6 spec-compliant RegExp.prototype.flags shim.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Node.js path.parse() ponyfill
Reactive Extensions for modern JavaScript
A small polyfill for Object.setprototypeof
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
An implementation of WHATWG AbortController interface.
Polyfills for React Native.
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Returns true if a string has an extglob.
Implementation of Function.prototype.bind
node's assert.deepEqual algorithm except for NaN being equal to NaN
Frequently installed together
The semantic version parser used by npm.
Store information about any JS value in a side channel. Uses WeakMap if available.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Get an iterator for any JS language value. Works robustly across all environments, all versions.
Which kind of boxed JS primitive is this?
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly `.call.bind()` a function
Array#isArray for older browsers
Is this an arguments object? It's a harder question than you think.
Is this value a JS SharedArrayBuffer?
An AST-based pattern checker for JavaScript.
Get and robustly cache all JS language-level intrinsics at first require time
Version history
| Version | Published | License |
|---|---|---|
| 1.1.6latest | 2 years ago | MIT |
| 1.1.5 | 5 years ago | MIT |
| 1.1.4 | 5 years ago | MIT |
| 1.1.3 | 5 years ago | MIT |
| 1.1.2 | 6 years ago | MIT |
| 1.1.1 | 6 years ago | MIT |
| 1.1.0 | 6 years ago | MIT |
| 1.0.2 | 6 years ago | MIT |
| 1.0.1 | 12 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.0.0 | 12 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install object-is?
Run `npm install object-is` to add object-is to your npm project.
What license is object-is released under?
object-is is distributed under the MIT license.
How popular is object-is?
object-is has approximately 0 downloads per week and 1 known dependent packages.