Skip to content

No need to sort arrays that are 0 or 1 in length.#14

Open
shahbaztariq wants to merge 2 commits intojonschlinkert:masterfrom
shahbaztariq:patch-1
Open

No need to sort arrays that are 0 or 1 in length.#14
shahbaztariq wants to merge 2 commits intojonschlinkert:masterfrom
shahbaztariq:patch-1

Conversation

@shahbaztariq
Copy link

If the array length value is 0 (zero) or 1 then there is no point trying to sort the array. Slightly more efficient.

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.

1 participant