Dynamic module type-detect

Index

Functions

Functions

type(val: any): string

Parameters

  • val: any

Returns

string

Library: Library

public define(type: string, test: RegExp)

Parameters

  • type: string
  • test: RegExp

public define(type: string, test: (val: any) => boolean)

Parameters

  • type: string
  • test: (val: any) => boolean

public of(val: any): string

Parameters

  • val: any

Returns

string

public test(val: any, type: string): boolean

Parameters

  • val: any
  • type: string

Returns

boolean