So if I have an object where the keys of the object are different href's
that map to an object... how can I be returned a the key where the href
contains a certain string...
For example:
const hrefMap = new Map<string, any>({
'www.hello.com/12345': {value: 1, color: 'red'},
'www.hello.com/0000': {value: 2, color: 'blue'}
})
I want to be able to do something where I can input 12345
and be returned www.hello.com/12345
.