Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is

Is Functions

isError

  • isError(error: any): error
  • name

    isError

    description

    Check is value is error object.

    summary

    import { isError } from "@corefunc/corefunc/is/error";

    since

    0.3.46

    Parameters

    • error: any

      Object to be checked.

    Returns error

isNil

  • isNil(value: any): boolean
  • name

    isNil

    description

    Checks if value is null or undefined.

    Parameters

    • value: any

      The value to check

    Returns boolean

isNotNil

  • isNotNil(value: unknown): boolean
  • name

    isNotNil

    description

    Checks if value is not null or not undefined.

    Parameters

    • value: unknown

      The value to check

    Returns boolean

isNumber

  • isNumber(value: any): boolean
  • name

    isNumber

    description

    Checks if a given value is number. Returns false on NaN or Infinity.

    summary

    import { isNumber } from "@corefunc/corefunc/is/number";

    Parameters

    • value: any

    Returns boolean

isString

  • isString(value: any): value
  • name

    isString

    description

    Checks if a given value is a real string.

    summary

    import { isString } from "@corefunc/corefunc/is/string";

    Parameters

    • value: any

    Returns value

isStringable

  • isStringable(value: any, isStrictCheck?: boolean): boolean
  • name

    isStringable

    description

    Checks if a given value can be converted to string.

    summary

    import { isStringable } from "@corefunc/corefunc/is/stringable";

    since

    0.3.54

    Parameters

    • value: any
    • isStrictCheck: boolean = false

    Returns boolean

Other Functions

isArguments

  • isArguments(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isFunction

  • isFunction(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isFunctionAsync

  • isFunctionAsync(value: any): boolean
  • name

    isFunctionAsync

    description

    Is Function asynchronous

    Parameters

    • value: any

    Returns boolean

isGeneratorFunction

  • isGeneratorFunction(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isGeneratorObject

  • isGeneratorObject(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isGlobal

  • isGlobal(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isMap

  • isMap(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isPromise

  • isPromise(value: any): boolean
  • name

    isPromise

    description

    Returns true if value is an Promise.

    Parameters

    • value: any

    Returns boolean

isRegExp

  • isRegExp(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isSet

  • isSet(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isWeakMap

  • isWeakMap(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

isWeakSet

  • isWeakSet(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

Generated using TypeDoc