function trimName(person) { var trimmedName; if (person.name !== undefined) { trimmedName = person.name.trim(); } return trimmedName; }
Search found 2 matches
- Thu Jan 05, 2012 9:41 pm
- Forum: JavaScript
- Topic: Trim function
- Replies: 6
- Views: 4038
Re: Trim function
Actually, a friend of mine helped me out :
- Thu Jan 05, 2012 6:53 pm
- Forum: JavaScript
- Topic: Trim function
- Replies: 6
- Views: 4038
Re: Trim function
Hi, have you figured out the solution ?
I'm so stuck. It drives me crazy !
Thanks for your help
I'm so stuck. It drives me crazy !
Thanks for your help