...(condition? { a:1} : {})
arr.filter(Boolean)
new Array(20).fill('')
const fn1 = ()=>{...};
const fn2 = ()=>{...};
const fn3 = ()=>{...};
const fnEnum = {
type1: fn1,
type2: fn2,
type3: fn3,
}
fnEnum [`${type}`](args)
...(condition? { a:1} : {})
arr.filter(Boolean)
new Array(20).fill('')
const fn1 = ()=>{...};
const fn2 = ()=>{...};
const fn3 = ()=>{...};
const fnEnum = {
type1: fn1,
type2: fn2,
type3: fn3,
}
fnEnum [`${type}`](args)