0

If I have a defined object in javascript like this:

jsObject = {
    objectName : 'some name',
    objectDescription: 'some description',
    objectDate: {
            day: '19',
            month: 'april',
            year: '2022'
    }
}

I wonder if there is a way to determine what is an object (in terms of the structure, not in terms of 'everything in javascript is an object') and what isn't in order to do some later processing with the stored data. For example, objectDate is an object but objectName isn't, that is the kind of discrimination I want to do. Thank you all for the information.

Etheryte
  • 24,589
  • 11
  • 71
  • 116

0 Answers0