diff --git a/docs/Parser.html b/docs/Parser.html index 6ac3630..40bf929 100644 --- a/docs/Parser.html +++ b/docs/Parser.html @@ -22,7 +22,7 @@
@@ -2364,6 +2364,157 @@ Returns
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index d8021e4..aad1c8f 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -22,7 +22,7 @@
undefined
when the browser is no described in the checkTree
+ some(anythings) → {Boolean}
+ + + + + + +-
+
+
+
- Source: +
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Check if any of the given values satifies this.is(anything)
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
anythings |
+
+
+ + + +Array.<String> + + + + | + + + + + ++ |
Returns:
+ + + + +-
+
- + Type + +
- + +Boolean + + + +
test(regex) → {Boolean}
@@ -2528,7 +2679,7 @@ Returnsundefined
when the browser is no described in the checkTree
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index d8021e4..aad1c8f 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -22,7 +22,7 @@
@@ -96,7 +96,7 @@ export default Bowser;
diff --git a/docs/global.html b/docs/global.html index 2454d0d..5e2a961 100644 --- a/docs/global.html +++ b/docs/global.html @@ -22,7 +22,7 @@
diff --git a/docs/global.html b/docs/global.html index 2454d0d..5e2a961 100644 --- a/docs/global.html +++ b/docs/global.html @@ -22,7 +22,7 @@
@@ -758,7 +758,7 @@ like
"iPhone"
or "Kindle Fire HD 7"
diff --git a/docs/index.html b/docs/index.html
index 9f5fbcd..efeb771 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -22,7 +22,7 @@
@@ -144,7 +144,7 @@ check if all tests are still passing.
diff --git a/docs/parser.js.html b/docs/parser.js.html index ef3ce83..863ee8a 100644 --- a/docs/parser.js.html +++ b/docs/parser.js.html @@ -22,7 +22,7 @@
diff --git a/docs/parser.js.html b/docs/parser.js.html index ef3ce83..863ee8a 100644 --- a/docs/parser.js.html +++ b/docs/parser.js.html @@ -22,7 +22,7 @@
@@ -466,6 +466,15 @@ class Parser {
is(anything) {
return this.isBrowser(anything) || this.isOS(anything) || this.isPlatform(anything);
}
+
+ /**
+ * Check if any of the given values satifies this.is(anything)
+ * @param {String[]} anythings
+ * @returns {Boolean}
+ */
+ some(anythings = []) {
+ return anythings.some(anything => this.is(anything));
+ }
}
export default Parser;
@@ -481,7 +490,7 @@ export default Parser;
diff --git a/docs/utils.js.html b/docs/utils.js.html index 03959e1..ac9ba16 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -22,7 +22,7 @@
diff --git a/docs/utils.js.html b/docs/utils.js.html index 03959e1..ac9ba16 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -22,7 +22,7 @@
@@ -186,7 +186,7 @@ module.exports = Utils;