Update and archive pipeLog

This commit is contained in:
Angelos Chalaris
2018-09-22 14:38:12 +03:00
parent 74e43a9af4
commit 0a3fc48320
2 changed files with 15 additions and 13 deletions

View File

@ -1,13 +0,0 @@
### pipeLog
Use `console.log` in a pipeline as this function simply encloses it and returns the passed value. This is especially useful for debugging when you want to log a variable's value before its usage.
Logs a value and returns it.
```js
const pipeLog = data => console.log(data) || data
```
```js
pipeLog(1); // logs `1` and returns `1`
```