Options
All
  • Public
  • Public/Protected
  • All
Menu

Module valid

Is Valid Functions

isEmpty

  • isEmpty(value: any): boolean
  • name

    isEmpty

    description

    Checks wherever object is empty

    summary

    import { isEmpty } from "@corefunc/corefunc/valid/is-empty";

    Parameters

    • value: any

    Returns boolean

isFalsy

  • isFalsy(value: any): boolean
  • name

    isFalsy

    description

    In JavaScript, there are six falsy values: false, 0, '', null, undefined, and NaN. Everything else is truthy.

    summary

    import { isFalsy } from '@corefunc/corefunc/valid/is-falsy';

    since

    0.2.3

    Parameters

    • value: any

    Returns boolean

isObjectId

  • isObjectId(value: any): boolean
  • name

    isObjectId

    description

    Check is value ObjectId

    since

    0.0.94

    Parameters

    • value: any

    Returns boolean

isTruthy

  • isTruthy(value: any): boolean
  • name

    isTruthy

    description

    In JavaScript, there are six falsy values: false, 0, '', null, undefined, and NaN. Everything else is truthy.

    summary

    import { isTruthy } from '@corefunc/corefunc/valid/is-truthy';

    since

    0.2.3

    Parameters

    • value: any

    Returns boolean

isUuid

  • isUuid(value: any): boolean

Generated using TypeDoc