Skip to content

Instantly share code, notes, and snippets.

View kas-cor's full-sized avatar
🏠
Working from home

Alexsander kas-cor

🏠
Working from home
  • kas-cor
  • World
View GitHub Profile
@kas-cor
kas-cor / find_replace.js
Created March 18, 2016 08:19 — forked from CrowderSoup/find_replace.js
Replace all instances of a substring without Regex in JavaScript
var str = 'This is a test string.';
// Let's replace all spaces with ','
str = str.split(' ').join(',');