UNPKG

@digicms/cms

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: MySQL, MariaDB, PostgreSQL, SQLite

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