I am getting an unexpected result while trying to use nullish coalescing operator on a return value that might be an array or might have an array as a child
const storedKeys = await getStoreKeys();
let keys = storedKeys.keys ?? storedKeys;
console.log(keys);
console.log
output:
ƒ keys() { [native code] }
Any idea on what might be going wrong? Thanks.