Reply to comment

Il s'agit bien d'une fonction

Il s'agit bien d'une fonction similaire au trim PHP car l'alias "\s" dans les expressions régulières Javascript s'ignifie : espace, retour chariot, tabulation, saut de ligne et saut de page.
Un simple test aurait suffit à t'en rendre compte Eric, plutôt que de nous polluer avec tes commentaires injustifiés et de risquer de détourner certaines personnes de ce code qui peut s'évérer fort utile.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>. The supported tag styles are: <foo>, [foo].

More information about formatting options