Created
February 27, 2018 07:43
-
-
Save vldvel/aa23b818c705d25417a3af2b2aa3edb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string.replace(param1, param2); | |
| // param1 - RegExp or String | |
| // param2 - String or Function(return String) | |
| // EXAMPLE | |
| 'ABC'.replace(/A/, 'X'); // XBC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment