Skip to content

Instantly share code, notes, and snippets.

@JMWebDevelopment
Created December 19, 2016 02:51
Show Gist options
  • Save JMWebDevelopment/ea294aa054de348ced68f76233cfff38 to your computer and use it in GitHub Desktop.
Save JMWebDevelopment/ea294aa054de348ced68f76233cfff38 to your computer and use it in GitHub Desktop.
this.getCommentById = function ( commentID, comments_list ) {
for ( j = 0; j < comments_list.length; j++ ) {
if ( comments_list[j].comment_ID == commentID ) {
return comments_list[j];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment