Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

API Reference

Top-Level Exports

Importing

Every function described above is a top-level export. You can import any of them like this:

import { isTrue } from '@meltwater/makenew-node-lib'

isTrue(check)

Checks if its argument is true.

Arguments

  1. check (any): The thing to check.

Returns

(boolean): If check is true.

Example

async () => {
  const x = await isTrue(true)
  x === true
}

async () => {
  const y = await isTrue('')
  y === false
}