Skip to main content

Bug Tracker

Side navigation

#8460 closed feature (invalid)

Opened March 07, 2011 01:27PM UTC

Closed March 07, 2011 02:47PM UTC

php empty function

Reported by: Mark-Paspirgilis@web.de Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

i just wanted to share my empty function with others.

I did not find a isEmpty function in jQuery so i wrote a 2lines function to check it like in PHP:

function isEmpty(checkString){

checkString = checkString.replace(/\\r|\\n|\\ |\\t/i, '');

return (checkString == '');

}

Please tell me if a function like this already exist in jQuery and if not it should be added to jquery.

regards

Mark Paspirgilis

Attachments (0)
Change History (1)

Changed March 07, 2011 02:47PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a bug report. You could make a post on the forum if you'd like: http://forum.jquery.com