diff options
author | wout <wout@impinc.co.uk> | 2014-06-21 18:25:29 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-21 18:25:29 +0200 |
commit | 19b6fd4338246d1fd9ca4806e57c7aebcec63826 (patch) | |
tree | 3dd1d207de9f586f7e4d4cd36917e347ab022a9e /src/helpers.js | |
parent | bb0e6be2da0cea98c5303871c0be055f5f70d7a9 (diff) | |
download | svg.js-19b6fd4338246d1fd9ca4806e57c7aebcec63826.tar.gz svg.js-19b6fd4338246d1fd9ca4806e57c7aebcec63826.zip |
Removed all structural references
Diffstat (limited to 'src/helpers.js')
-rw-r--r-- | src/helpers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers.js b/src/helpers.js index c63c215..492039c 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -5,6 +5,11 @@ function camelCase(s) { }) } +// Capitalize first letter of a string +function capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1) +} + // Ensure to six-based hex function fullHex(hex) { return hex.length == 4 ? |