Does js use includes to check both 1 and 11?

Why does the same thing before change to true

let model = [
    {code: 1, value:""}
    {code: 2, value:"1"}
    {code: 17, value:"2"}
    {code: 11, value:"3"}
]
// 
let model = items.map((n) =>
Object.assign({}, n, {
  // model.valuevalue1.   11.
  checked: model.value.includes(n.code)
}))
// 
model = [
    {code: 1, value:"" checked:true}
    {code: 2, value:"1"checked:fales}
    {code: 17, value:"2"checked:true}
    {code: 11, value:"3"checked:true}
]
Oct.15,2021
The

String.prototype.includes ()
includes () method is used to determine whether a string is contained in another string and returns true or false as appropriate.
read the description clearly and choose the appropriate method. You need to judge the equality directly by using = or =

.
Menu