UNPKG

teletype-client-modified

Version:

I have modified the library developed by Atom to make it compatible with non-browser facility. I am using it only for experimentation purposes. I will remove this package post my experiment and raise a PR at Atom to finally merge this package so that this

14 lines (10 loc) 254 B
module.exports = function setEqual (a, b) { if (a instanceof Array) a = new Set(a) if (b instanceof Array) b = new Set(b) if (a.size !== b.size) return false for (const element of a) { if (!b.has(element)) return false } return true }