This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function chunkString(str, splitSize = 50) { | |
const maxChunkedPart = 9999999999999999; | |
if (typeof str !== 'string') { | |
throw "str must be a string"; | |
} | |
if (str.length <= splitSize) { | |
return str; | |
} | |
const trimedString = str.replace(/\s+/g," "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(global) { | |
if (typeof define !== 'undefined') { | |
return; | |
} | |
/* eslint strict:0 */ | |
var modules = {}; | |
var inGuard = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(global) { | |
if (typeof define !== 'undefined') { | |
return; | |
} | |
/* eslint strict:0 */ | |
var modules = {}; | |
var inGuard = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x41a30af6f19ef5e4676e6498760b519a03c85bc8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xbdd6a1c7197bf6d94199613f5f87234f06e8aab0 |