Accessing object properties two

Write a function that takes an object with two properties as argument. It should return the value of the property with key 'prop-2'. Hint: you might want to use the square brackets property accessor
function
myFunction
(
obj
)
{

return
}
Test Cases:
myFunction({ one: 1, 'prop-2': 2})
Expected
2
myFunction({ 'prop-2': 'two', prop: 'test'})
Expected
'two'