Home »
MCQs »
Lodash MCQs
Which of the following method Divides an array into pieces of a certain size?
1. Which of the following method Divides an array into pieces of a certain size?
- _.chunk(array, size)
- _.peice(array, size)
- _.data(array, size)
- _.divide(array, size)
Answer: A) _.chunk(array, size)
Explanation:
_.chunk(array, size) method Divides an array into pieces of a certain size.