Skip to content

Instantly share code, notes, and snippets.

@vutranHS
vutranHS / test.js
Last active December 19, 2018 09:50
Split String
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," ");
@vutranHS
vutranHS / test
Last active December 10, 2018 12:28
(function(global) {
if (typeof define !== 'undefined') {
return;
}
/* eslint strict:0 */
var modules = {};
var inGuard = false;
(function(global) {
if (typeof define !== 'undefined') {
return;
}
/* eslint strict:0 */
var modules = {};
var inGuard = false;
0x41a30af6f19ef5e4676e6498760b519a03c85bc8
0xbdd6a1c7197bf6d94199613f5f87234f06e8aab0