Created
May 16, 2021 14:35
-
-
Save julienetie/e2a3af95894031f9bc33282601a6f5c8 to your computer and use it in GitHub Desktop.
Object class RegExp
This file contains 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
const string = "[object Window]"; | |
const pattern = /[^[object ](.*)[^\]]/g; | |
string.match(pattern); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment