First of all includes() is mainly used for arrays, and here you are calling this function on record.id which i guess is a string so you should be using record.id.contains(x)
Second, in js the identity (===) operator behaves identically to the equality (==) operator except no type conversion is done, and the types must be the same to be considered equal. So you should use the identity operator in your condition