Js uses the .es6 operator to core the same item? How to use it. Is each item of the check array equal?

use the extension operator to check the values in the two arrays of the array, why does the return always come out with one? Please point to
A [{correct_answer: "01100"} {correct_answer: "11001"}, {correct_answer: "11100"}]
B {exam_problem_id: "01110"}
.

     A.forEach(function (i) {
        //
      var correct_answer = i.correct_answer.split(""),
      arr_answwer = B[i.exam_problem_id].split("")
    
      if (i) {
            //
        console.log(arr_correct_answer(...correct_answer, ...arr_answwer))
      }
    })
        //
      arr_correct_answer(x, y) {
        let fraction = 0
          if ((x === "1")===(y==="1")) {
              console.log(123)
          }
      }
Mar.01,2021
Menu