rand01m,
function isContains(number, array) {
var numberArray = String(number).split('');
return numberArray.every(function(elem) {
return array.indexOf(+elem) != -1
}) && array.every(function(elem) {
return numberArray.indexOf('' + elem) != -1
});
}
alert(isContains(449, [4, 9]));
//true
alert(isContains(134, [1, 3]));
//false
alert(isContains(18, [8, 1]));
//true
alert(isContains(18, [7, 1]));
//false
alert(isContains(3, [1, 3]));
//false