siren-parser
Advanced tools
Comparing version 8.1.0 to 8.2.0
@@ -16,5 +16,11 @@ "use strict"; | ||
var match = arrayLike.find(function (item) { | ||
return item.match(stringOrRegex); | ||
}); | ||
var match; | ||
for (var i = 0; i < arrayLike.length; i++) { | ||
if (arrayLike[i].match(stringOrRegex)) { | ||
match = arrayLike[i].match(stringOrRegex); | ||
break; | ||
} | ||
} | ||
return match !== undefined; | ||
@@ -21,0 +27,0 @@ } |
{ | ||
"name": "siren-parser", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"description": "Pretty much the opposite of dominicbarnes/node-siren-writer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,5 +6,9 @@ export function contains(arrayLike, stringOrRegex) { | ||
const match = arrayLike.find(function(item) { | ||
return item.match(stringOrRegex); | ||
}); | ||
let match; | ||
for (let i = 0; i < arrayLike.length; i++) { | ||
if (arrayLike[i].match(stringOrRegex)) { | ||
match = arrayLike[i].match(stringOrRegex); | ||
break; | ||
} | ||
} | ||
@@ -11,0 +15,0 @@ return (match !== undefined); |
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
158290
1570