modules

ac-bundle-module-utils-string

utils/string.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: toProperCase

toProperCase

function(str) {
  return str.replace(
    /\w\S*/g,
    function(txt) {
      return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
    }
  );
}

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *