Skip to content

Instantly share code, notes, and snippets.

@josephg
Created March 31, 2017 04:30
Show Gist options
  • Save josephg/4d806588e776095503a570dc5e7b7909 to your computer and use it in GitHub Desktop.
Save josephg/4d806588e776095503a570dc5e7b7909 to your computer and use it in GitHub Desktop.
$ grep 'deepEqual' -r node_modules/ | grep -v test | grep 'js:'
node_modules//assert/assert.js:// assert.deepEqual(actual, expected, message_opt);
node_modules//assert/assert.js:assert.deepEqual = function deepEqual(actual, expected, message) {
node_modules//assert/assert.js: if (!_deepEqual(actual, expected)) {
node_modules//assert/assert.js: fail(actual, expected, message, 'deepEqual', assert.deepEqual);
node_modules//assert/assert.js:function _deepEqual(actual, expected) {
node_modules//assert/assert.js: return _deepEqual(a, b);
node_modules//assert/assert.js: if (!_deepEqual(a[key], b[key])) return false;
node_modules//assert/assert.js: if (_deepEqual(actual, expected)) {
node_modules//hoek/lib/index.js:exports.deepEqual = function (obj, ref, options, seen) {
node_modules//hoek/lib/index.js: if (exports.deepEqual(obj[i], ref[r], options, seen)) {
node_modules//hoek/lib/index.js: if (!exports.deepEqual(obj[i], ref[i], options, seen)) {
node_modules//hoek/lib/index.js: if (!exports.deepEqual(descriptor, Object.getOwnPropertyDescriptor(ref, key), options, seen)) {
node_modules//hoek/lib/index.js: else if (!exports.deepEqual(obj[key], ref[key], options, seen)) {
node_modules//hoek/lib/index.js: compare = exports.deepEqual;
node_modules//jsprim/lib/jsprim.js:exports.deepEqual = deepEqual;
node_modules//jsprim/lib/jsprim.js:function deepEqual(obj1, obj2)
node_modules//jsprim/lib/jsprim.js: if (!deepEqual(obj1[k], obj2[k]))
node_modules//sshpk/lib/dhe.js: assert.deepEqual(pk.part.p, this._p,
node_modules//sshpk/lib/dhe.js: assert.deepEqual(pk.part.g, this._g,
node_modules//tough-cookie/lib/cookie.js: enumerable: false, // important for assert.deepEqual checks
$ ls node_modules/ | wc
394 394 4503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment