Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 481 Bytes

File metadata and controls

22 lines (20 loc) · 481 Bytes

Open http://www.emoji-cheat-sheet.com/ and run in Console

var ids = ['people', 'nature', 'objects', 'places', 'symbols']
var r = []
var s, b
ids.forEach(function(id) {
  s = '[' + id + ']:'
  $('#emoji-' + id).find('li > div').each(function() {
    b = $.trim($(this).text()).replace(/:/g, '')

    if (!/^[\d]+$/.test(b)) {
      s += ' ' + b
    }
    else {
      r.push(b)
    }
  })
  console.log(s)
})
console.log(r)