Skip to content

Instantly share code, notes, and snippets.

@mcsee
Created April 11, 2024 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/6283f6599373f54c37ad914fbbf89849 to your computer and use it in GitHub Desktop.
Save mcsee/6283f6599373f54c37ad914fbbf89849 to your computer and use it in GitHub Desktop.
const pets = '😺🐶😺';
const justDogs = pets.replace('😺', '🐩');
const catsArePresent = justDogs.includes('😺');
// returns true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment