kkreft
2/27/2014 - 1:54 PM

JS last word

var lastWord = function(o) {
  return (""+o).replace(/[\s-]+$/,'').split(/[\s-]/).pop();
};