@olton/query
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "@olton/query", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Query is a minimalist JavaScript library for manipulating with HTML Elements", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -37,2 +37,16 @@ import {each} from "../helpers/each.js"; | ||
hasAttr(name){ | ||
return !!this.attr(name) | ||
}, | ||
hasAttrs(names){ | ||
let result = true | ||
for(let name of names) { | ||
if (typeof this.attr(name) === 'undefined') { | ||
return false | ||
} | ||
} | ||
return result | ||
}, | ||
removeAttr: function(name){ | ||
@@ -39,0 +53,0 @@ let attributes |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10681801
3306