@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Function isJSONValue

    • Checks if a given value is a valid JSON value.

      检查给定值是否为有效的JSON值

      Parameters

      • value: unknown

        The value to check. 要检查的值

      Returns value is string | number | boolean | any[] | Record<string, any> | null

      True if the value is a valid JSON value, false otherwise. 如果值是有效的JSON值则返回true,否则返回false