Skip to content

Instantly share code, notes, and snippets.

@rcdexta
Created March 28, 2019 04:58
Show Gist options
  • Save rcdexta/f30746a98743d1c57e377048595e29a6 to your computer and use it in GitHub Desktop.
Save rcdexta/f30746a98743d1c57e377048595e29a6 to your computer and use it in GitHub Desktop.
array includes
const primes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,97]
_.includes(primes, 47)
primes.includes(79)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment