ng2-logger
Version:
isomorphic logger for browser/server in typescript
19 lines • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function contain(arr, item) {
return arr.filter(function (l) {
if (l instanceof RegExp) {
return l.test(item);
}
if (l === item) {
return true;
}
if ((item.match && typeof item.match === 'function') ? item.match(l) : false) {
return true;
}
return false;
}).length > 0;
}
exports.contain = contain;
;
//# sourceMappingURL=include.js.map