UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

9 lines (8 loc) 216 B
/** * @description defineBooleanAry filter * @param {number|string} value * @returns {String} */ export const filterBoolean = (value: number | string): string => { return +value === 1 ? '是' : '否' }