Home »
MCQs »
Lodash MCQs
To flatten the array to one level deep, use the Lodash.flatten() function
5. To flatten the array to one level deep, use the Lodash.flatten() function.
- Lodash.pureflatten()
- Lodash.deepflatten()
- Lodash.Oneflatten()
- Lodash.flatten()
Answer: D) Lodash.flatten()
Explanation:
To flatten the array to one level deep, use the Lodash.flatten() function.