Bug Tracker

Modify

Ticket #8460 (closed feature: invalid)

Opened 2 years ago

Last modified 2 years ago

php empty function

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

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

Change History

comment:1 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.