Last active
June 15, 2025 22:25
-
-
Save protomorph/581ffb4e7e694a80a02c28dede30f8d3 to your computer and use it in GitHub Desktop.
Revisions
-
protomorph revised this gist
Jun 15, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ const chunk = (array, size) => array.map( (_, i) => i % size === 0 ? array.slice(i, i + size) : null ).filter(Boolean) -
protomorph created this gist
May 12, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ const chunk = (array, size) => array.map( (_, i) => i % size === 0 ? array.slice(i, i + size) : null ).filter(e => e)