Remove unused var from tail().

This commit is contained in:
John-David Dalton
2018-06-15 06:20:07 -04:00
parent 4ba0f8b612
commit 4ea8c2ec24

View File

@@ -15,7 +15,7 @@ function tail(array) {
if (!length) {
return []
}
const [head, ...result] = array
const [, ...result] = array
return result
}