summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/lcfirst.js
blob: ea8df572e94d488b0aec9117cfd4e907172f017d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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