Home Reference Source Repository

Function

Static Public Summary
public

isFunction(obj: *): boolean

Checks that a given object is a function.

public

Checks that a given object is a plain object.

public

isString(obj: *): boolean

Checks that a given object is a string.

Static Public

public isFunction(obj: *): boolean source

import {isFunction} from 'test-rest/src/utils/validators.js'

Checks that a given object is a function.

Params:

NameTypeAttributeDescription
obj *

The object to check.

Return:

boolean

public isPlainObject(obj: *): boolean source

import {isPlainObject} from 'test-rest/src/utils/validators.js'

Checks that a given object is a plain object.

Params:

NameTypeAttributeDescription
obj *

The object to check.

Return:

boolean

public isString(obj: *): boolean source

import {isString} from 'test-rest/src/utils/validators.js'

Checks that a given object is a string.

Params:

NameTypeAttributeDescription
obj *

The object to check.

Return:

boolean