Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const examples = problem => {
  2.   const newInputs = problem.inputs.map((input, i) => {
  3.     console.log(input);
  4.     return {'type': input.type, 'value': input.input}
  5.   });
  6.   console.log(newInputs);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement