
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
same-object
Advanced tools
Determine if two objects are deeply equal
npm install same-object
Supports circular references, Maps, Symbols, etc. Based on: chaijs/deep-eql
Aims for ~99% compatibility with deep-equal without requiring native dependencies.
Useful for JavaScript runtimes without native Node modules like util, etc.
const sameObject = require('same-object')
console.log(sameObject(1, 1)) // true
console.log(sameObject(1, 2)) // false
console.log(sameObject(1, '1')) // true
console.log(sameObject(1, '1', { strict: true })) // false
console.log(sameObject({ foo: 1 }, { foo: 1 })) // true
console.log(sameObject({ foo: 1 }, { foo: 1, bar: true })) // false
const bool = sameObject(a, b, [options])Compares a and b, returning whether they are equal or not.
Available options:
{
strict: false
}
Loosely comparison (==) by default.
Use { strict: true } for a stronger equality check (===).
MIT
FAQs
Determine if two objects are deeply equal
The npm package same-object receives a total of 6,581 weekly downloads. As such, same-object popularity was classified as popular.
We found that same-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.