获取数组或对象交集
值 A
值 B
intersection([1, 2, 2, 3, 3], [1, 2, 4, 5]); /// [1, 2]intersection({a: 1, b: 2}, {a: 1, c: 3, b: 4}); /// {a: 1} Copy
intersection([1, 2, 2, 3, 3], [1, 2, 4, 5]); /// [1, 2]intersection({a: 1, b: 2}, {a: 1, c: 3, b: 4}); /// {a: 1}
获取数组或对象交集