Simple Javascript Solution
\nfunction invert(arr) {\n    return arr.reverse();\n}\n\nfunction flip(arr) {\n    for(let i = 0; i<arr.length; i++) {\n        if(arr[i] == 1) {\n            
```\nfunction invert(arr) {\n    return arr.reverse();\n}\n\nfunction flip(arr) {\n    for(let i = 0; i<arr.length; i++) {\n        if(arr[i] == 1) {\n            arr.splice(i, 1, 0);\n        } else if(arr[i] == 0 ) {\n            arr.splice(i, 1, 1);\n        }\n    }\n    return arr;\n}\n\nvar flipAndInvertImage = function(image) {\n   return image.map(img => flip(invert(img)));\n};\n```
['JavaScript']