Created
August 26, 2018 07:26
-
-
Save hamzaali00001/f4d14401fed543a79a16d7eb353faffa to your computer and use it in GitHub Desktop.
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 characters
function tap($value, $callback = null) | |
{ | |
if (is_null($callback)) { | |
return new HigherOrderTapProxy($value); | |
} | |
$callback($value); | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment