Created
May 22, 2020 21:56
-
-
Save joegaudet/f6d4ad0a101e4f3517c21ee9a8e9e946 to your computer and use it in GitHub Desktop.
Revisions
-
joegaudet created this gist
May 22, 2020 .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,5 @@ const closed = 2; const closed_2 = 3; [1,2,3] .filter(_ => _ > closed) .map(_ => _ * closed_3); 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,8 @@ $closed = 2; $closed_2 = 3; array_map(array_filter([1,2,3], funciton($i) use ($closed) { return $i > $closed; }, function($i) use ($closed_2) { return $i * $closed_2) })