#deepEqual

javascript实现deepEqual和shallowEqual

functiondeepEqual(x,y){if(x===y){returntrue;}if(!(typeofx=="object"&&x!=null)||!(typeofy=="object"&&y!=null)){returnfalse;}//比较对象内部if(Object.key...