summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/lcfirst.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/lcfirst.js')
-rw-r--r--node_modules/locutus/php/strings/lcfirst.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/lcfirst.js b/node_modules/locutus/php/strings/lcfirst.js
new file mode 100644
index 0000000..ea8df57
--- /dev/null
+++ b/node_modules/locutus/php/strings/lcfirst.js
@@ -0,0 +1,13 @@
+'use strict';
+
+module.exports = function lcfirst(str) {
+ // discuss at: http://locutus.io/php/lcfirst/
+ // original by: Brett Zamir (http://brett-zamir.me)
+ // example 1: lcfirst('Kevin Van Zonneveld')
+ // returns 1: 'kevin Van Zonneveld'
+
+ str += '';
+ var f = str.charAt(0).toLowerCase();
+ return f + str.substr(1);
+};
+//# sourceMappingURL=lcfirst.js.map \ No newline at end of file