Create a gist now

Instantly share code, notes, and snippets.

function containsArray3 (outer, inner) {
return !!(
-1 < ('[' + outer.join('][') + ']')
.indexOf('[' + inner.join(',') + ']')
);
}
// quite slow :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment