src/emoticons.js
function getEmoticons(arr) {
  var nested = arr.map(function (str) {
    return str.match(between);
  });
  
  return flatten(nested)
    .filter(function (el) {
      return el;
    })
    .filter(emoticonsPredicate)
    .map(function (str) {
      return str.slice(1, str.length - 1);
    });
}
function getEmoticons(arr) {
  var nested = arr.map(function (str) {
    return str.match(between);
  });
  
  return flatten(nested)
    .filter(function (el) {
      return el;
    })
    .filter(emoticonsPredicate)
    .map(function (str) {
      return str.slice(1, str.length - 1);
    });
}
function getEmoticons ( arr ) { var nested = arr . map ( function ( str ) { return str . match ( between ) ; } ) ; return flatten ( nested ) . filter ( function ( el ) { return el ; } ) . filter ( emoticonsPredicate ) . map ( function ( str ) { return str . slice ( 1 , str . length - 1 ) ; } ) ; }
Parses tokenized array into emoticon strings
@func
@param {array} arr - a chat input string split on whitespace
Parses tokenized array into emoticon strings