Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 332 Bytes
title layout author authorurl
Pointless If statement
post
James

We've all seen this:

{% highlight javascript %} if (kRegex.test(value)) { return true; } else { return false; } {% endhighlight %}

Eew.

Beautified:

{% highlight javascript %} return kRegex.test(value); {% endhighlight %}

Something went wrong with that request. Please try again.