In this Story, lets talk about how we can find out if a variable holds array or object values? Lets declare two separate variables named array and obj. const array = [1,2,3,4,5];
const obj = {id: 1, name: “Josh”}; Now, you might be thinking that we can use typeof operator…