Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
My Favorite JavaScript Helper Functions
JavaScript
by
Taufik Nurrohman
14th July 2016
1
2
// @extend
// <code>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
latest revision
7
6
5
4
3
2
1
Some of them come from PHP, and they are very handy.
4 Responses
It would be great if it had more documentation in comments
1
Reply?
S
shareef
6 years ago
capitalize function fails when some characters are used.
Example: Spanish name: "marco ñuñez", results into "Marco ñUñez".
1
Reply?
Marco Piñero
4 years ago
@Marco Piñero
Try replace `[a-z]` with `\S`
1
Reply?
Taufik Nurrohman
4 years ago
@Taufik Nurrohman
That's the solution! ... Good work!!
0
Reply?
Marco Piñero
4 years ago
Write a comment
Send Comment
You can use [html][/html], [css][/css], [php][/php] and
more
to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
4 Responses
Example: Spanish name: "marco ñuñez", results into "Marco ñUñez".
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.