Skip to content

Instantly share code, notes, and snippets.

@jslegers
Created February 21, 2016 18:44
Show Gist options
  • Save jslegers/7bed8b5d7e1a1ab88a22 to your computer and use it in GitHub Desktop.
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