window.ENTITIES={'/api/snippets/javascript/split%20string%20in%20jquery':[{"result":true,"message":null,"batch":{"type":"javascript","name":"split string in jquery","items":[{"id":"DnLKaj","type":"javascript","name":"split string in jQuery","content":"// jQuery do not privide logic to split strings\n// it is necessary to use just JavaScript\n\nconst text = 'Some text here ...';\nconst lines = text.split(' ');\n\nconsole.log(lines[0]); // Some\nconsole.log(lines[1]); // text\nconsole.log(lines[2]); // here\nconsole.log(lines[3]); // ...","source":"","author":{"id":"ZDxgq0","name":"Sujay","avatar":"1629142120943__ZDxgq0__w40px_h40px.jpg","points":512,"role":"BASIC"},"creationTime":1639760305000,"updateTime":null,"removalTime":null},{"id":"p2ANvD","type":"javascript","name":"split string in jQuery","content":"// jQuery do not privide logic to split strings\n// it is necessary to use just JavaScript\n\nconst text = 'Some text here ...';\nconst lines = text.split(/\\s+/g); // splitting by any white character using regular expressions\n\nconsole.log(lines[0]); // Some\nconsole.log(lines[1]); // text\nconsole.log(lines[2]); // here\nconsole.log(lines[3]); // ...","source":"","author":{"id":"9o1NY0","name":"Violetd","avatar":"1629130632039__9o1NY0__w40px_h40px.jpg","points":925,"role":"BASIC"},"creationTime":1639760413000,"updateTime":null,"removalTime":null}]}}]};