Plato on Github
Report Home
node_modules/es5-ext/string/#/capitalize.js
Maintainability
81.84
Lines of code
8
Difficulty
4.20
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
'use strict'; var value = require('../../object/valid-value'); module.exports = function () { var str = String(value(this)); return str.charAt(0).toUpperCase() + str.slice(1); };