Category: Data

by This article is not only for beginners but also for many of them who are still confused about what is map and mapObject and when do we need to use them. Before going into when to use map and mapObject, let's first know how can we identify whether the data is an Array or an Object!a) To Identify if the input is an Object or not: Very simple. Remember an Object starts with { and end with }Example 2: You can have an array inside an Object: Observe field Designation which has 2 values enclosed in an array

I think now it's pretty much clear what is an Object and what is an array

Related Articles