value is object javascript code example Example: javascript is object typeof yourVariable === 'object' && yourVariable !== null