@supuwoerc/toolkit
    Preparing search index...

    Function isPrimitive

    • 判断是否为原始值

      Determine whether a value is a primitive (string, number, boolean, symbol, bigint, null, undefined).

      Parameters

      • val: any

        待判断的值 / value to check

      Returns val is string | number | bigint | boolean | symbol | null | undefined

      如果是原始值返回 true / true if value is primitive