'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
var shortenString = exports.shortenString = function shortenString(str, maxLen) {
  if (str && str.length > maxLen) {
    return str.substr(0, maxLen - 1) + '...';
  }
  return str;
};