Skip to content

isBoolean() function

n이 Boolean이면 true를 반환합니다.

Signature:

typescript
isBoolean: <T>(input: T) => input is T & boolean

Example

ts
isBoolean(true); // true
isBoolean(null); // false
isBoolean("FxTS"); // false

Open Source Code

Released under the Apache-2.0 License.