Consistent parens usage for arrow functions with body.

This commit is contained in:
Michał Lipiński
2017-02-27 12:15:08 +01:00
parent 4c4b29cdef
commit d8b5183b1d
13 changed files with 16 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ const nativeGetSymbols = Object.getOwnPropertySymbols
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
const getSymbolsIn = !nativeGetSymbols ? () => [] : object => {
const getSymbolsIn = !nativeGetSymbols ? () => [] : (object) => {
const result = []
while (object) {
result.push(...getSymbols(object))