JSFiddle - React, Tailwind, and code Playground

by webgleb

JavaScript

const test = {
	'comment': 111,
  'another': 222,
};

const test1 = {
  'another': 222,
};

if (test.comment) {
	console.log('сущесвтует в test')
} else {
	console.log('не сущесвтует в test')
}

if (test1.comment) {
	console.log('сущесвтует в test1')
} else {
	console.log('не сущесвтует в test1')
}