Skip to content

Instantly share code, notes, and snippets.

@konfou
Forked from vielhuber/script.js
Last active October 25, 2017 11:27
Show Gist options
  • Save konfou/3dfa46afb0b4456cf56780f2ae4c75c5 to your computer and use it in GitHub Desktop.
Save konfou/3dfa46afb0b4456cf56780f2ae4c75c5 to your computer and use it in GitHub Desktop.

Revisions

  1. konfou revised this gist Oct 25, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion script.js
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    'this is a foo and a foobar'.split('foo').join('bar');
    String.prototype.replaceAll = function(foo, bar) {
    return this.split(foo).join(bar);
    };
  2. @vielhuber vielhuber created this gist Oct 25, 2017.
    1 change: 1 addition & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    'this is a foo and a foobar'.split('foo').join('bar');