Skip to content

Conversation

cmhorsey
Copy link

@cmhorsey cmhorsey commented May 7, 2024

Manipulated cats array using different array meowthods

Copy link

@stephenmckeon stephenmckeon left a comment

Choose a reason for hiding this comment

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

You're a star. Nice description haha.

};

function removeLastCat() {
return removeLastCat = [...cats.slice(0,-1)];

Choose a reason for hiding this comment

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

Suggested change
return removeLastCat = [...cats.slice(0,-1)];
return removeLastCat = [...cats.slice(0, -1)];

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