型を文字列で取得する
Get the type of a value as a string.
# 数値の型を取得する# Get the type of a number.getType(123); // "Number"# 論理値の型を取得する# Get the type of a boolean. Copy
# 数値の型を取得する# Get the type of a number.getType(123); // "Number"# 論理値の型を取得する# Get the type of a boolean.
getType(true); // "Boolean"# 配列の型を取得する# Get the type of an array.getType([]); // "Array"# オブジェクトの型を取得する# Get the type of an object.getType({}); // "Object"# NaN の型を取得する# Get the type of NaN.getType(NaN); // "NaN"# Infinite の型を取得する# Get the type of Infinite.getType(Infinity); // "Infinity"getType(-Infinity); // "Infinity"# 関数の型を取得する# Get the type of a function.getType(function(){}); // "Function" Copy
getType(true); // "Boolean"# 配列の型を取得する# Get the type of an array.getType([]); // "Array"# オブジェクトの型を取得する# Get the type of an object.getType({}); // "Object"# NaN の型を取得する# Get the type of NaN.getType(NaN); // "NaN"# Infinite の型を取得する# Get the type of Infinite.getType(Infinity); // "Infinity"getType(-Infinity); // "Infinity"# 関数の型を取得する# Get the type of a function.getType(function(){}); // "Function"
型を取得したい値。 The value you want to get the type of.
型の文字列。 The type string.
Generated using TypeDoc
型を文字列で取得する
Get the type of a value as a string.
Example
Example