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

Latest commit

 

History

History
43 lines (28 loc) · 605 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 605 Bytes

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
}