---
title: "Discussion on \"Writing Lodash's Chunk method from scratch\" | Hashnode"
description: "Discussion on \"Writing Lodash's Chunk method from scratch\". The _.chunk method in Lodash is a utility function that splits an array into groups of a specified size. Each group is returned as a sub-array, and the final group may contain fewer elements if there are not enough elements to fill it completely. Thi..."
url: "https://hashnode.com/posts/writing-lodashs-chunk-method-from-scratch/66841ff693541bf63f84f0e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Writing Lodash's Chunk method from scratch](https://kfbr392.hashnode.dev/writing-lodashs-chunk-method-from-scratch?utm_source=hashnode&utm_medium=feed)

The \_.chunk method in Lodash is a utility function that splits an array into groups of a specified size. Each group is returned as a sub-array, and the final group may contain fewer elements if there are not enough elements to fill it completely. Thi...

Jul 2, 2024 · 1 min read · kfbr392.hashnode.dev  
Read the article

-   [#lodash](https://hashnode.com/tag/lodash)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nritam Kumar](https://hashnode.com/@nritamk)

@nritamk

  
[View profile](https://hashnode.com/@nritamk)

Frontend Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
