Home >Web Front-end >JS Tutorial >JS public small method to determine whether the object is an instance of domElement
The example is as follows:
function isDOMElement(obj) { return !!(obj && typeof window !== 'undefined' && (obj === window || obj.nodeType)); }
The above example of JS public method to determine whether the object is domElement is all the content shared by the editor