UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

6 lines (5 loc) 205 B
import { isString } from './isString.js'; /** Returns whether the payload is a string, BUT returns false for '' */ export function isFullString(payload) { return isString(payload) && payload !== ''; }