4 ms·
There is a "true" module, which returns true. https://www.npmjs.com/package/true https://www.npmjs.com/package/true From the usage: > Usage > Simply require
by alblue 10y ago
There is a "true" module, which returns true.
https://www.npmjs.com/package/true https://www.npmjs.com/package/true
From the usage:
> Usage
> Simply require the true module. The export is a function which returns the Boolean value true:
> var t = require('./true')
, myTrueValue = t();
console.log(myTrueValue === true); // Logs 'true'
- thameera 10y agoAnd it's not as easy as it seems: https://github.com/mde/true/issues/5 https://github.com/mde/true/issues/5
- steveklabnik 10y agohttps://www.gnu.org/software/coreutils/manual/html_node/true-invocation.html#true-invocation https://www.gnu.org/software/coreutils/manual/html_node/true...