判断两个值是否相等
值 1
值 2
isEqual([1, 2, 3], [1, 2, 3]); /// trueisEqual({a: 1, b: 2}, {a: 1, b: 2}); /// trueisEqual({}, {}); /// trueisEqual(1, 1); /// trueisEqual(1, '1'); /// false Copy
isEqual([1, 2, 3], [1, 2, 3]); /// trueisEqual({a: 1, b: 2}, {a: 1, b: 2}); /// trueisEqual({}, {}); /// trueisEqual(1, 1); /// trueisEqual(1, '1'); /// false
判断两个值是否相等