@nickyzj2023/utils
    Preparing search index...

    Function isPrimitive

    • 检测传入的值是否为原始值(number、string、boolean、symbol、bigint、undefined、null)

      Parameters

      • value: any

      Returns value is Primitive

      isPrimitive(1);  // true
      isPrimitive([]); // false