Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created May 22, 2020 21:56
Show Gist options
  • Save joegaudet/f6d4ad0a101e4f3517c21ee9a8e9e946 to your computer and use it in GitHub Desktop.
Save joegaudet/f6d4ad0a101e4f3517c21ee9a8e9e946 to your computer and use it in GitHub Desktop.
const closed = 2;
const closed_2 = 3;
[1,2,3]
.filter(_ => _ > closed)
.map(_ => _ * closed_3);
$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)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment