I want to find x number exist inside given below array or not. For finding x number inside, any element of the array can make given x number. This is based on the element's have an inside array and check it exist or not. It's not like promotion and combination.
let arrr = [
4,
7,
6,
2,
7,
6
];
- Example : If X=16 then result should be [4,6,6] = 16 (true)
- Example : If X=11 then result should be [4,7] = 11 (true)
- Example : If X=18 then result should be [4,6,6,2] = 18 (true)