summaryrefslogtreecommitdiffstats
path: root/src/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.js')
-rw-r--r--src/helpers.js5
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 ?