forked from Cookies_Github_mirror/AquaDX
[-] Remove the unnecessary clz shorthand
This commit is contained in:
@@ -88,16 +88,4 @@ export const CHARTJS_OPT: ChartOptions<'line'> = {
|
||||
intersect: false
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert object keys to classes depending on their values
|
||||
*
|
||||
* @param obj Dictionary object {classname: truthy}
|
||||
* @param others Other classes to add
|
||||
*/
|
||||
export function clz(obj: any, others?: string) {
|
||||
let cls = Object.keys(obj).filter(key => obj[key]).join(' ')
|
||||
if (others) cls += ' ' + others
|
||||
return cls
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user