Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Some small optimizations #4

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

Conversation

edelooff
Copy link

This change makes two small adjustments:

The check for the length of the query string is performed without explicitly checking the length. Since any string of non-zero length is boolean true, there's no need for the length check.

Secondly, the $.each call has been replaced with a similar $.map call. Using $.map, the actual value operated on is passed first, removing the need to catch an unused i parameter.

Since only the empty string returns false, the test for nonzero length can be expressed as a direct boolean check. Also replaced 'each' call with 'map', which removes an unused variable in the processing function.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant