JS Task API Reference

Module: utils

Table of contents

Variables

Functions

Variables

isBrowser

Const isBrowser: boolean

Defined in

utils.ts:4


isNode

Const isNode: boolean

Defined in

utils.ts:6

Functions

sleep

sleep(time, inMs?): Promise<void>

Parameters

NameTypeDefault value
timenumberundefined
inMsbooleanfalse

Returns

Promise<void>

Defined in

utils.ts:1

Was this helpful?