Use Array.prototype.some instead of filtering the complete array just for checking for non-emptiness
Use Array.prototype.some instead of filtering the complete array just for checking for non-emptiness

tulios/kafkajs,tulios/kafkajs,tulios/kafkajs,tulios/kafkajs