Plato on Github
Report Home
node_modules/es5-ext/string/#/camel-to-hyphen.js
Maintainability
92.09
Lines of code
8
Difficulty
3.69
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var replace = String.prototype.replace , re = /([a-z])([A-Z])/g; module.exports = function () { return replace.call(this, re, "$1-$2").toLowerCase(); };