Travis build: 503
This commit is contained in:
35
README.md
35
README.md
@ -491,6 +491,15 @@ average(1, 2, 3);
|
||||
|
||||
</details>
|
||||
|
||||
### Uncategorized
|
||||
|
||||
<details>
|
||||
<summary>View contents</summary>
|
||||
|
||||
* [`pipeLog`](#pipelog)
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
---
|
||||
|
||||
@ -9138,6 +9147,32 @@ yesNo('Foo', true); // true
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Uncategorized
|
||||
|
||||
### 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;
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
pipeLog(1); // logs `1` and returns `1`
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
## Collaborators
|
||||
|
||||
| [<img src="https://github.com/Chalarangelo.png" width="100px;"/>](https://github.com/Chalarangelo)<br/> [<sub>Angelos Chalaris</sub>](https://github.com/Chalarangelo) | [<img src="https://github.com/flxwu.png" width="100px;"/>](https://github.com/flxwu)<br/> [<sub>Felix Wu</sub>](https://github.com/Pl4gue) | [<img src="https://github.com/fejes713.png" width="100px;"/>](https://github.com/fejes713)<br/> [<sub>Stefan Feješ</sub>](https://github.com/fejes713) | [<img src="https://github.com/kingdavidmartins.png" width="100px;"/>](https://github.com/kingdavidmartins)<br/> [<sub>King David Martins</sub>](https://github.com/iamsoorena) | [<img src="https://github.com/iamsoorena.png" width="100px;"/>](https://github.com/iamsoorena)<br/> [<sub>Soorena Soleimani</sub>](https://github.com/iamsoorena) |
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ Use `console.log` in a pipeline as this function simply encloses it and returns
|
||||
Logs a value and returns it.
|
||||
|
||||
```js
|
||||
const pipeLog = data => console.log(data) || data
|
||||
const pipeLog = data => console.log(data) || data;
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
@ -209,6 +209,7 @@ pick:object,array,intermediate
|
||||
pickBy:object,array,function,intermediate
|
||||
pipeAsyncFunctions:adapter,function,promise,intermediate
|
||||
pipeFunctions:adapter,function,intermediate
|
||||
pipeLog:uncategorized
|
||||
pluralize:string,intermediate
|
||||
powerset:math,beginner
|
||||
prefix:browser,utility,intermediate
|
||||
|
||||
Reference in New Issue
Block a user