Created
September 2, 2019 23:32
-
-
Save michalczukm/e34c2c51a580603892b4988261ae1391 to your computer and use it in GitHub Desktop.
Revisions
-
michalczukm created this gist
Sep 2, 2019 .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 zipRun: <T>(items: T[], commands: Array<(item: T) => unknown>) => void = (items, commands) => { items.forEach((item, index) => commands[index](item)); }