typo at objectToPairs & add test

This commit is contained in:
Stefan Feješ
2018-01-10 14:27:06 +01:00
parent adeec058c9
commit 9fd2ec582f
2 changed files with 2 additions and 1 deletions

View File

@ -9,5 +9,5 @@ const objectToPairs = obj => Object.keys(obj).map(k => [k, obj[k]]);
```
```js
objectToPairs({ a: 1, b: 2 }); // [['a',1],['b',2]])
objectToPairs({ a: 1, b: 2 }); // [['a',1],['b',2]]
```