0๐
โ
if (this.myArray.some((el) => this.inputField.split(/[, ]/g).includes(el.uniqueID))
0๐
You have an error in your condition. It should be
this.myArray.some((el) => el.uniqueId /* <-- "d" instead of "D" */ === this.inputField)
Source:stackexchange.com