Every function described above is a top-level export. You can import any of them like this:
import { isTrue } from '@meltwater/makenew-node-lib'
Checks if its argument is true.
check
(any): The thing to check.
(boolean): If check
is true
.
async () => {
const x = await isTrue(true)
x === true
}
async () => {
const y = await isTrue('')
y === false
}