Write a function for the following JavaScript code? console.log(omit({ a: 1, b: '2', c: 3 }, ['b'])); // {“a”:1,”c”:3} console.log(omit({ a: 1, b: 2, c: 3 }, ['c'])); // {“a”:1,”b”:2}
Anonymous
function omit(obj, arr){ for(let i=0; i
Check out your Company Bowl for anonymous work chats.