Skip to content

[WIP] Remove underscore dependency for buildComments function#413

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/remove-underscore-dependency
Draft

[WIP] Remove underscore dependency for buildComments function#413
Copilot wants to merge 1 commit into
mainfrom
copilot/remove-underscore-dependency

Conversation

Copy link
Copy Markdown

Copilot AI commented May 13, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Ref: remove underscore dependency</issue_title>
<issue_description>Remove underscore dependency for this function:

EpComments.prototype.buildComments = function (commentsData) {
  const comments =
    _.map(commentsData, (commentData, commentId) => this.buildComment(commentId, commentData.data));
  return comments;
};

TO

EpComments.prototype.buildComments = function (commentsData) {
  const comments = [];
  for (const commentId in commentsData) {
      if (!Object.hasOwn(commentsData, commentId)) {
          const newComment = this.buildComment(commentId, commentData.data);
          comments.push(newComment)
      }
  }
  return comments;
};

</issue_description>

Comments on the Issue (you are @copilot in this section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ref: remove underscore dependency

2 participants