Skip to content

Instantly share code, notes, and snippets.

@dubzzz
Last active March 21, 2018 20:21
Show Gist options
  • Save dubzzz/ceff00a1294d1cf9e96319979c20537b to your computer and use it in GitHub Desktop.
Save dubzzz/ceff00a1294d1cf9e96319979c20537b to your computer and use it in GitHub Desktop.
const contains = (pattern, text) => {
return text.substr(1).indexOf(pattern) !== -1;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment