codacy issues fix

This commit is contained in:
SamR1
2018-01-14 17:19:02 +01:00
parent ec37423dfc
commit a51f2869bf
6 changed files with 20 additions and 15 deletions

View File

@ -1,13 +1,10 @@
export const isLoggedIn = () => !!window.localStorage.authToken
export function generateIds(arr) {
let i = 0
let arrWithIds = arr.map(arr => {
const obj = { id: i, value: arr }
return arr.map(val => {
const obj = { id: i, value: val }
i++
return obj
})
return arrWithIds
}