Skip to content

Instantly share code, notes, and snippets.

@Axighi
Created May 2, 2017 08:45
Show Gist options
  • Select an option

  • Save Axighi/d7300d279c6e5fc9b23d1f90c7cdac48 to your computer and use it in GitHub Desktop.

Select an option

Save Axighi/d7300d279c6e5fc9b23d1f90c7cdac48 to your computer and use it in GitHub Desktop.

Revisions

  1. Axighi created this gist May 2, 2017.
    6 changes: 6 additions & 0 deletions increase_replace.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    'An aplle is not a banana'.replace(/a/g, (() => {
    var number = 0;
    return () => {
    return number++;
    }
    })())