Check out example codes for "check if key exists in json typescript". It will help you in understanding the concepts better.

Code Example 1

if (cell.hasOwnProperty('Relationships')) {
	console.log("Key Found!!");
}
else {
	console.log("Not Found.");
}

Learn ReactJs, React Native from akashmittal.com