UNPKG

datoit

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite

10 lines (6 loc) 178 B
'use strict'; const _ = require('lodash'); const isTruthy = val => { return [1, true].includes(val) || ['true', '1'].includes(_.toLower(val)); }; module.exports = isTruthy;