With ES6 includes function.
With new ES6 Map object.
With use of ES6 new Set object.
And don't mess JavaScript code with HTML.
How to delete data set by attribute? Why is it still available?