data-cap
    Preparing search index...

    Variable shapeConst

    shape: {
        isDate: (value: unknown) => value is Date;
        isNullish: (value: unknown) => value is null | undefined;
        isPlainObject: (value: unknown) => value is Record<string, unknown>;
        isRegExp: (value: unknown) => value is RegExp;
        isURL: (value: unknown) => value is URL;
    } = ...

    Structural (never business-rule) type guards for narrowing a raw value inside a processor.

    Type Declaration

    • isDate: (value: unknown) => value is Date

      True for a Date instance.

    • isNullish: (value: unknown) => value is null | undefined

      True for null/undefined.

    • isPlainObject: (value: unknown) => value is Record<string, unknown>

      True for a plain object literal (or Object.create(null)) -- false for arrays, null, and class instances.

    • isRegExp: (value: unknown) => value is RegExp

      True for a RegExp instance.

    • isURL: (value: unknown) => value is URL

      True for a URL instance.