mori
mori copied to clipboard
mori.difference broken
s0 = mori.set(["cat", "dog", "mouse"])
s1 = mori.set(["dog", "cat", "bird"])
console.log(mori.difference(s0, s1))
prints
#{"mouse"}
but it should print
#{"mouse" "bird"}
(mori version 0.3.2 on Node v0.12.2)
Only just now saw https://github.com/swannodette/mori/issues/147 - so maybe the docs are wrong, not the code.
Can confirm, difference is working correctly in this case.