{"id":16441636,"url":"https://github.com/kavalcante/array-into-subarrays","last_synced_at":"2026-05-06T00:36:53.899Z","repository":{"id":57184003,"uuid":"88816161","full_name":"kavalcante/array-into-subarrays","owner":"kavalcante","description":"A non destructive and simple function that divide an array into multiples subarrays","archived":false,"fork":false,"pushed_at":"2017-12-03T20:42:41.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T00:21:10.019Z","etag":null,"topics":["function","functional-programming","javascript","nodejs","npm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kavalcante.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-20T03:21:18.000Z","updated_at":"2017-04-26T20:32:45.000Z","dependencies_parsed_at":"2022-08-23T01:30:47.721Z","dependency_job_id":null,"html_url":"https://github.com/kavalcante/array-into-subarrays","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavalcante%2Farray-into-subarrays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavalcante%2Farray-into-subarrays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavalcante%2Farray-into-subarrays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavalcante%2Farray-into-subarrays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kavalcante","download_url":"https://codeload.github.com/kavalcante/array-into-subarrays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240787846,"owners_count":19857639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["function","functional-programming","javascript","nodejs","npm"],"created_at":"2024-10-11T09:14:58.381Z","updated_at":"2025-10-25T12:23:23.285Z","avatar_url":"https://github.com/kavalcante.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Array into Subarrays\n\n[![Build Status](https://travis-ci.org/kavalcante/array-into-subarrays.svg?branch=master)](https://travis-ci.org/kavalcante/array-into-subarrays)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kavalcante/array-into-subarrays/master/LICENSE)\n[![npm version](https://badge.fury.io/js/array-into-subarrays.svg)](https://badge.fury.io/js/array-into-subarrays)\n\nInsert a array list and receive a new list (non destructive) with groups of elements (subarrays).\n\n### Installing\n\n\n```\n$ npm install array-into-subarrays --save\n```\n\n### Usage\n\n\n```js\n\nimport arrayIntoSubarrays from 'array-into-subarrays';\n\nconst array = [1, 2, 3, 4, 5, 6, 7, 8, 9] // could be any data, and how much indexes do you want.\n\narrayIntoSubarrays(array, 4) // =\u003e [[1, 2, 3, 4], [5, 6, 7, 8], [9]];\n\n// you can invoke the function in any part of your code, because is a non destructive function\n\n```\n\n## Attributes\n\n\n| Option        | Default       | Type   | Description  |\n| :------------ | :------------ | :----- | :--------- |\n| __array__     | no default value | array | Array that will be divided. |\n| __limit__   | 4 | number | Length of subarrays. |\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [copy from Stack Overflow answear](http://stackoverflow.com/questions/11318680/split-array-into-chunks-of-n-length)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavalcante%2Farray-into-subarrays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkavalcante%2Farray-into-subarrays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavalcante%2Farray-into-subarrays/lists"}