type

Utilities for type checking.

Functions

Function
Description
Example

of

Get the type of a value

dphelper.type.of(value)

instOfObj

Check if value is Object instance

dphelper.type.instOfObj(value)

isNaN

Check if value is NaN

dphelper.type.isNaN(value)

isBool

Check if value is boolean

dphelper.type.isBool(value)

Description

Type checking utilities:

  • Type Detection - Get precise type of any value

  • Boolean Check - Detect boolean values

  • NaN Detection - Identify NaN values

  • Object Check - Verify object instances

Usage Examples

Get Type

Check Object Instance

Check NaN

Check Boolean

Type Guard Functions

Details

  • Author: Dario Passariello

  • Version: 0.0.2

  • Creation Date: 20210101

  • Last Modified: 20260220

  • Environment: both (browser + Node.js)


Automatically generated document

Last updated