UNPKG

kafkajs

Version:

A modern Apache Kafka client for node.js

15 lines (12 loc) 209 B
module.exports = (a, b) => { const result = [] const length = a.length let i = 0 while (i < length) { if (b.indexOf(a[i]) === -1) { result.push(a[i]) } i += 1 } return result }