Every line of 'jquery haschild' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
178 hasChild (element) { 179 if (this.children.indexOf(element) != -1) { 180 return true; 181 } 182 return false; 183 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
76 return function child(elem) { 77 var parent = adapter.getParent(elem); 78 return !!parent && next(parent); 79 };