loading...

re: The beauty of Functional Programming VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Good suggestion,thanks

Another option is

function what([x, ...xs]) {
  return ['new first elem', ...xs];
}
code of conduct - report abuse