UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

16 lines 580 B
(function (undefined) { 'use strict'; String.prototype.format = function (parameter) { return this.replace(/{(\d+)}/g, function (matchItem, index, matchCharPosition, input) { return parameter[index] ? parameter[index] : matchItem; }); }; if (!String.prototype.startsWith) { String.prototype.startsWith = function (searchString, position) { return this.substr(position || 0, searchString.length) === searchString; }; } String.prototype.toKebabCase = function () { return this.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }; }());