(value: any, strict = false)
| 9 | * @returns 返回boolean |
| 10 | */ |
| 11 | export const isTrue = (value: any, strict = false) => { |
| 12 | if (typeof value === 'string' && !strict) { |
| 13 | return value.toLowerCase() === 'true'; |
| 14 | } |
| 15 | return value === true; |
| 16 | }; |
no outgoing calls
no test coverage detected