Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW3 AnqiLi #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laq-anqi
Copy link

@laq-anqi laq-anqi commented Feb 7, 2019

No description provided.


console.log('Which games are owned by both Ross and Nathan', query7);

/* =====================
Which games are exclusive to collections? In other words, only owned by either Ross or Nathan.
===================== */

var query8;
var query8 = _.difference(rossGameList,nathanGameList);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Difference does not capture the games that one person has that the other person does not have. This answer is missing two games.


var Filter = (data)=>{
for (let i=0; i<data.length; i++){
if (parseFloat(data[i][3])>20) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice use of parseFloat - I haven't seen anyone else do that.

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.

2 participants