Files: bd426f70b20582a00fe0bfa9e1fca8d3d28f0acc / lib / is-same.js
233 bytesRaw
1 | module.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