I've been learning more about functional programming and the idea of keeping functions pure. So I experimented with taking an array and making a copy of it with the slice function like so...
var text = ['a', 'b', 'c'],
copy = text.slice(0);
I have two arrays at this point of the same type and with the same values but when I test to see if they're the same...
text === copy; => returns 'false'
Why isn't the copy seen as the same array by Javascript?