It will return all but the last element of the value.
value
1.0.0
head([0, 1, 2, 3, 4, 5]);// => [0, 1, 2, 3, 4] Copy
head([0, 1, 2, 3, 4, 5]);// => [0, 1, 2, 3, 4]
head("012345");// => "01234" Copy
head("012345");// => "01234"
It will return all but the last element of the
value
.