diff --git a/src/stdlib/underscore-extensions.coffee b/src/stdlib/underscore-extensions.coffee index e0bf7327f..7d203ce76 100644 --- a/src/stdlib/underscore-extensions.coffee +++ b/src/stdlib/underscore-extensions.coffee @@ -93,6 +93,10 @@ _.mixin else "-" + uncamelcase: (string) -> + result = string.replace /([A-Z])|(_)/g, (m, letter, underscore) -> " " + letter + _.capitalize(result) + undasherize: (string) -> string.split('-').map(_.capitalize).join(' ')