Fix: linting
This commit is contained in:
@@ -35,7 +35,7 @@ export function total (rows, field = 'Montant') {
|
||||
return Math.round(sum)
|
||||
}
|
||||
|
||||
export function tag_filter (rows, tags, invert=false) {
|
||||
export function tagFilter (rows, tags, invert = false) {
|
||||
// filter rows by tags
|
||||
// invert inverts the selection
|
||||
return rows.filter(row => {
|
||||
@@ -55,7 +55,7 @@ export function tag_filter (rows, tags, invert=false) {
|
||||
|
||||
function objectMap (object, mapFn) {
|
||||
// map a function on object value
|
||||
return Object.keys(object).reduce(function(result, key) {
|
||||
return Object.keys(object).reduce((result, key) => {
|
||||
result[key] = mapFn(object[key])
|
||||
return result
|
||||
}, {})
|
||||
|
||||
Reference in New Issue
Block a user