To do this, we need to combine Node.children with a few other techniques.
Use Array.prototype.every() to check if all the elements of the array are the same as the first one.
To detect if an element has the focus, you use the read-only property activeElement of the document object.
Sanitizing is the process of removing any attributes, properties, and values that are not included in an allowlist or that are explicitly forbidden on a disallow list.
Use Document.querySelector() and Element.requestFullscreen() to open the given element in fullscreen.
Wrap the wrapper element around the ele element.
To remove any duplicates, we can pass our array into the new Set() constructor, then convert the returned collection back into an array.
Use Array.prototype.every() and Array.prototype.includes() to check if all elements of values are included in arr.
To check if the caps lock is on, you use the getModifierState() method of the KeyboardEvent object.
Use Array.prototype.some() and Array.prototype.includes() to check if at least one element of values is included in arr.