Erste Funktionalität der Menükarte per GET/POST, keine API; Umstrukturierung der Tabelle als Bootstrap-div; HTML/CSS-Cleanup
This commit is contained in:
14
node_modules/repeat-string/index.js
generated
vendored
14
node_modules/repeat-string/index.js
generated
vendored
@@ -7,6 +7,13 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Results cache
|
||||
*/
|
||||
|
||||
var res = '';
|
||||
var cache;
|
||||
|
||||
/**
|
||||
* Expose `repeat`
|
||||
*/
|
||||
@@ -36,6 +43,7 @@ function repeat(str, num) {
|
||||
throw new TypeError('repeat-string expects a string.');
|
||||
}
|
||||
|
||||
// cover common, quick use cases
|
||||
if (num === 1) return str;
|
||||
if (num === 2) return str + str;
|
||||
|
||||
@@ -58,9 +66,3 @@ function repeat(str, num) {
|
||||
return res.substr(0, max);
|
||||
}
|
||||
|
||||
/**
|
||||
* Results cache
|
||||
*/
|
||||
|
||||
var res = '';
|
||||
var cache;
|
||||
|
||||
Reference in New Issue
Block a user