Created
January 22, 2018 17:09
-
-
Save andypotanin/675be0f3d05b54fc2d7b102af690f0b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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