Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added constructor check #3

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

arunoda commented Mar 27, 2013

Sometime we need to check only the type of the value. See the below example.

deepEqual(
        { a : 'str', b: 10, c: [10, true], d: {k: [1121, 2323], d: Number} },
        { a : String, b: Number, c: [Number, Boolean] , d: {k: Array, d: 10} }
);
Owner

substack commented Mar 27, 2013

The purpose of this module is to duplicate the assert.deepEqual() algorithm, not to invent new friendly api surface area. This functionality would be best as a separate module.

@substack substack closed this Mar 27, 2013

arunoda commented Mar 27, 2013

okay.

On Wed, Mar 27, 2013 at 10:04 AM, James Halliday
notifications@github.comwrote:

The purpose of this module is to duplicate the assert.deepEqual()
algorithm, not to invent new friendly api surface area. This functionality
would be best as a separate module.


Reply to this email directly or view it on GitHubhttps://github.com/substack/node-deep-equal/pull/3#issuecomment-15503940
.

Arunoda Susiripala

@arunoda http://twitter.com/arunoda
http://gplus.to/arunodahttps://github.com/arunoda
http://www.linkedin.com/in/arunoda

@arunoda arunoda referenced this pull request in arunoda/node-deep-equal Dec 17, 2013

@arunoda arunoda published as new module deep-equal2 999445e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment