Skip to content

Instantly share code, notes, and snippets.

@KyleMit
Created October 26, 2020 15:34
Show Gist options
  • Save KyleMit/34cec025a48f32bfe67d4dca637fab4c to your computer and use it in GitHub Desktop.
Save KyleMit/34cec025a48f32bfe67d4dca637fab4c to your computer and use it in GitHub Desktop.
Twitter - Includes
console.log(~"apple".indexOf("a")) // true
console.log("apple".indexOf("a") >= 0) // true
console.log("apple".includes("a")) // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment