Skip to content

Conversation

@caoxiaoshuai1
Copy link

No description provided.

@phated
Copy link
Collaborator

phated commented May 13, 2018

@jonschlinkert @doowb what do you guys think of this?

@doowb
Copy link
Collaborator

doowb commented May 14, 2018

I think it looks good. Using an if statement might be a little faster than Math.min though.

if (n > len) {
  n = len;
}

lukeed added a commit to lukeed/array-last that referenced this pull request Jul 16, 2018
@lukeed lukeed mentioned this pull request Jul 16, 2018
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.

3 participants