Add tap function
This commit is contained in:
parent
21d3dc49ff
commit
e4c004d3ad
2 changed files with 9 additions and 1 deletions
7
src/helpers.php
Normal file
7
src/helpers.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
function tap($value, $callback) {
|
||||
$callback($value);
|
||||
|
||||
return $value;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue