In ethers.js documentation, it is written to retrieve data like below
// 'contract' is an instance of Contract made with ethers.js
// Get the current value
let currentValue = await contract.getValue();
console.log(currentValue);
// "Hello World"
But my contract returns two value from smart-contract function. below is the interface of that function
function targetNFT() external view returns(address _nftToken, uint256 _nftTokenId);
How can I retrieve multiple values returned from smart-contract using ethers.js?