add snippet toKebabCase

This commit is contained in:
Rohit Tanwar
2017-12-22 22:44:51 +05:30
parent 1b34907f96
commit 144894cca5
4 changed files with 22 additions and 9 deletions

View File

@ -5,6 +5,6 @@ Returns the sum of an array of numbers.
Use `Array.reduce()` to add each value to an accumulator, initialized with a value of `0`.
```js
const arraySum = arr => arr.reduce((acc, val) => acc + val, 0);
const arraySum = zarr => arr.reduce((acc, val) => acc + val, 0);
// arraySum([1,2,3,4]) -> 10
```