2017-04-19 23:11:37 +02:00
|
|
|
class Helper {
|
|
|
|
constructor () {
|
|
|
|
this.addHelpfulPrototypes();
|
|
|
|
}
|
|
|
|
|
|
|
|
addHelpfulPrototypes () {
|
|
|
|
String.prototype.capitalize = function() {
|
|
|
|
return this.charAt(0).toUpperCase() + this.slice(1);
|
|
|
|
}
|
|
|
|
}
|
2017-04-23 01:05:36 +02:00
|
|
|
|
|
|
|
getLastLetter (string) {
|
|
|
|
return string.substr(string.length - 1, 1);
|
|
|
|
}
|
2017-04-19 23:11:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new Helper;
|