Skip to content

Instantly share code, notes, and snippets.

@andypotanin
Created January 22, 2018 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypotanin/675be0f3d05b54fc2d7b102af690f0b8 to your computer and use it in GitHub Desktop.
Save andypotanin/675be0f3d05b54fc2d7b102af690f0b8 to your computer and use it in GitHub Desktop.
var _thing = {};
jQuery('.student_context_card_trigger').each(function() {
var _name = jQuery(this).text().trim();
_thing[ _name ] = _thing[ _name ] || 0;
_thing[ _name ]++;
});
//_thing.sort();
//console.log(_thing);
_.forEach(_thing, function(name, count) {
console.log( name, count );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment