Socket
Socket
Sign inDemoInstall

tsame

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tsame

the logic behind tap's t.same() and t.strictSame()


Version published
Weekly downloads
37K
increased by8.24%
Maintainers
1
Install size
8.31 kB
Created
Weekly downloads
 

Readme

Source

tsame

Verify that two objects are the same, for use in tap. The less accepting cousin of tmatch.

This merges code originally found in only-shallow and deeper. See license file for more details.

USAGE

const tsame = require('tsame')

const obj1 = { foo: '1' }
const obj2 = { foo: 1 }

// nonstrict by default
assert(tsame(obj1, obj2))

// strictly the same, types and all
assert(!tsame.strict(obj1, obj2))

Pretty much what it says on the tin.

FAQs

Last updated on 12 Nov 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc