Skip to content

is

String.is(target)

Checks if target is a string.

Example

ts
import { String } from "@monstermann/string";

String.is("hello"); // true
String.is(123); // false
String.is(null); // false
ts
import { String } from "@monstermann/string";

pipe("hello", String.is()); // true
pipe(123, String.is()); // false
pipe(null, String.is()); // false