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.

  1. Lodash.pureflatten()
  2. Lodash.deepflatten()
  3. Lodash.Oneflatten()
  4. Lodash.flatten()

Answer: D) Lodash.flatten()

Explanation:

To flatten the array to one level deep, use the Lodash.flatten() function.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.