index.js
function copyAndPush(arr, obj) {
  var result = arr.slice();
  result.push(obj);
  return result;
}
function copyAndPush(arr, obj) {
  var result = arr.slice();
  result.push(obj);
  return result;
}
function copyAndPush ( arr , obj ) { var result = arr . slice ( ) ; result . push ( obj ) ; return result ; }
Makes a shallow copy of `arr`, and adds `obj` to the end of the copy.
Makes a shallow copy of arr and adds obj to the end of the copy .