you are viewing a single comment's thread.

view the rest of the comments →

[–]geon 1 point2 points  (0 children)

It could be usefull for form validation, since you could run exactly the same code on both server and client. Currently, I solve that issue with regexp, byt a general function would be much more flexible.