I'm really confused by this. If I do something like this:
[1].slice(1)
it returns an empty array (in the chrome interactive console). But if I compare:
[1].slice(1) === []
it's always false. So my Question is, what does [1].slice(1) really return?
-
1What are you trying to do? There is nothing to slice at index 1Esailija– Esailija2012-08-13 16:52:30 +00:00Commented Aug 13, 2012 at 16:52
-
writing a lispy to javascript compiler and trying to translate (rest '(1)).rabra– rabra2012-08-13 16:58:37 +00:00Commented Aug 13, 2012 at 16:58
Add a comment
|