Sitelet https://fxts.dev/ko/api/isString
Skip to content

isString() function ​

s가 String이면 true를 반환합니다.

Signature:

typescript
isString: <T>(input: T) => input is T & string

Example ​

ts
isString("a"); // true
isString(2); // false

Open Source Code

Released under the Apache-2.0 License.