Skip to content

Instantly share code, notes, and snippets.

@d4rkr00t
d4rkr00t / JavaScript - Module Template.js
Created October 21, 2013 11:53
JavaScript - Module Template
MYAPP.utilities.array = (function() {
var uobj = MYAPP.utilities.object,
ulang = MYAPP.utilities.lang,
array_string = "[object Array]",
ops = Object.prototype.toString;
return {
inArray: function(needle, haystack) {
for (var i = 0, max = haystack.length; i < max; i += 1) {
if (haystack[i] === needle) {