Typescript Check If A String Exists as An Interface Key

Can I check if a string exists as an interface key

interface list {
    one: string
    two: string
}

const myNumber = "one"

How do I check if myNumber value is an interface key



from Recent Questions - Stack Overflow https://ift.tt/2HyUCUy
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation