UNPKG

roarr

Version:

JSON logger for Node.js and browser.

6 lines (5 loc) 141 B
export const isTruthy = (value: string) => { return ['1', 'on', 't', 'true', 'y', 'yes'].includes( value.trim().toLowerCase(), ); };