Comparing version 0.1.28 to 0.1.30
{ | ||
"name": "soef", | ||
"version": "0.1.28", | ||
"version": "0.1.30", | ||
"description": "library for ioBroker", | ||
@@ -5,0 +5,0 @@ "author": { |
14
soef.js
@@ -1471,3 +1471,17 @@ /** | ||
}; | ||
Array.prototype.contains = function(propertyName, entry) { | ||
return this.find(function(v) { | ||
return v[propertyName] === entry[propertyName]; | ||
}) | ||
}; | ||
Array.prototype.add = function (v) { | ||
if (!this.contains(v)) { | ||
this.push(v); | ||
return true; | ||
} | ||
return false; | ||
}; | ||
}; | ||
@@ -1474,0 +1488,0 @@ exports.extendArray = extendArray; |
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
51650
1417