Skip to content

Instantly share code, notes, and snippets.

@jslegers
Created February 21, 2016 18:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jslegers/7bed8b5d7e1a1ab88a22 to your computer and use it in GitHub Desktop.
var helper = {};
helper.string = {
contains : function (haystack, needle) {
return !!~haystack.indexOf(needle);
},
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment