JavaScript/object:修订间差异
来自康健生活
| 第92行: | 第92行: | ||
return x && y && tx === 'object' && tx === ty | return x && y && tx === 'object' && tx === ty | ||
? (ok(x).length === ok(y).length && ok(x).every(key => deepEqual(x[key], y[key]))) | ? (ok(x).length === ok(y).length && ok(x).every(key => deepEqual(x[key], y[key]))) | ||
// :( x === y &&(x!= null && y!= null || x.constructor === y.constructor)) | |||
: (x === y); | : (x === y); | ||
}</syntaxhighlight>|{{consoleout|<pre> | }</syntaxhighlight>|{{consoleout|<pre> | ||
</pre>}}}} | </pre>}}}} | ||
2023年3月28日 (二) 08:10的版本
No categories