git ssb

1+

Matt McKegg / mutant



Tree: b9445832e31d8b9279595a8b40c71be0fc1bc40e

Files: b9445832e31d8b9279595a8b40c71be0fc1bc40e / lib / is-same.js

233 bytesRaw
1module.exports = function isSame (a, b, compare) {
2 if (compare && compare(a, b)) {
3 return true
4 } else if (typeof a !== typeof b || (typeof a === 'object' && a !== null)) {
5 return false
6 } else {
7 return a === b
8 }
9}
10

Built with git-ssb-web