Test case details

Preparation Code

Test cases

Test #1

const input = { name: "John", age: "25", // This is a string that should be converted to number active: "true", // This is a string that should be converted to boolean settings: { theme: "dark", notifications: "false", // This should become boolean volume: "75" // This should become number } }; const obj = {}; Object.assign(obj, input)

Test #2

const input = { name: "John", age: "25", // This is a string that should be converted to number active: "true", // This is a string that should be converted to boolean settings: { theme: "dark", notifications: "false", // This should become boolean volume: "75" // This should become number } }; const obj = {...input};