修复get.is.node的bug
This commit is contained in:
parent
d566a3d20a
commit
711ff153b2
|
@ -337,11 +337,10 @@ export class Is extends Uninstantable {
|
|||
*/
|
||||
/**
|
||||
* @param { any } obj
|
||||
* @returns { boolean }
|
||||
*/
|
||||
static node(obj) {
|
||||
var str = Object.prototype.toString.call(obj);
|
||||
if (str && str.indexOf('[object HTML')) return true;
|
||||
return false;
|
||||
return Object.prototype.toString.call(obj).startsWith('[object HTML');
|
||||
}
|
||||
/**
|
||||
* @param { any } obj
|
||||
|
|
Loading…
Reference in New Issue