Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob Bass Jacob-Bass

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jacob-bass on github.
  • I am baseddev (https://keybase.io/baseddev) on keybase.
  • I have a public key ASDHu4RhYz_KQAv14TjijGyU4ERiajzHBDO5XFP_WR8-KAo

To claim this, I am signing this object:

@Jacob-Bass
Jacob-Bass / mutations.js
Last active Jan 25, 2016
FreeCodeCamp "Mutations" solution
View mutations.js
Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.
For example, ["hello", "Hello"], should return true because all of the letters in the second string are present in the first, ignoring case.
The arguments ["hello", "hey"] should return false because the string "hello" does not contain a "y".
Lastly, ["Alien", "line"], should return true because all of the letters in "line" are present in "Alien".