> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/type/type-functions.md).

# type functions

[JS](/web/js.md) ⟩ [value](/web/js/val.md) ⟩ [type](/web/js/val/type.md) ⟩ custom functions

{% tabs %}
{% tab title="🔴 主題" %}

* [baseTypeName()](/web/js/val/type/name/base-type-name.md) - type name (<mark style="color:red;">**can't distinguish**</mark> [class](/web/js/val/class.md) from [function](/web/js/val/func.md))
* [functionDefinition()](/web/js/val/type/type-functions/func-def.md) - returns function's definition ([String](/web/js/val/prim/str.md))
* [isObject()](/web/js/val/type/type-functions/isobject.md) - check if value is an [object](/web/js/val/obj.md).
* [isPrimitive()](/web/js/val/type/type-functions/isprimitive.md) - check if value is [primitive](/web/js/val/prim.md).
* [isFunction()](/web/js/val/type/type-functions/isfunction.md) - check if value is a [function](/web/js/val/func.md).
* [isClass()](/web/js/val/type/type-functions/isclass.md) - check if value is a [class](/web/js/val/class.md).
* [typeName()](/web/js/val/type/name/typename.md) - value's [type name](/web/js/val/type/name.md) (<mark style="color:yellow;">**refined**</mark> verson of [baseTypeName()](/web/js/val/type/name/base-type-name.md))
  {% endtab %}
  {% endtabs %}
