RSSAmplifier

LakTEK · Jan 7, 2011

jQuery isBlank()

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

One of my favorite syntactic sugar methods available in Rails is the Object.blank? , which evaluates to true if the given object is false, empty, or a whitespace string. It makes your conditional expressions more readable; avoiding the use of boolean operators. It would be cool if we can have the same convenience when writing client-side code with JavaScript. Unfortunately, jQuery Core doesn't…

Read on laktek.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.