freeCodeCamp | Advanced Algorithm Scripting | Symmetric Difference

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Not that it makes much difference, but in the second function, rather than slicing and dicing and making sure that indexOf is equal to -1, you could also say if (array.indexOf(element) === array.lastIndexOf(element)). Thanks for the tutorial!

wyomonkey