10 lines
146 B
JavaScript
10 lines
146 B
JavaScript
|
function same(a, b) {
|
||
|
return a === b;
|
||
|
}
|
||
|
|
||
|
function main() {
|
||
|
var obj = {};
|
||
|
assert(same({}, {}) == false);
|
||
|
assert(same(obj, obj) == true);
|
||
|
}
|