Remove pipeLog

This commit is contained in:
Angelos Chalaris
2020-04-16 11:12:17 +03:00
parent 66421c9aaa
commit 81a78b2ba9
2 changed files with 0 additions and 24 deletions

View File

@ -1,16 +0,0 @@
---
title: pipeLog
tags: utility,beginner
---
Logs a value and returns it.
Use `console.log` to log the supplied value, combined with the `||` operator to return it.
```js
const pipeLog = data => console.log(data) || data;
```
```js
pipeLog(1); // logs `1` and returns `1`
```