MCPcopy Create free account
hub / github.com/esmBot/esmBot / isEmpty

Function isEmpty

src/utils/misc.ts:270–272  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

268}
269
270export function isEmpty(string: string) {
271 return string.length === 0 || string.replace(/[\s\u2800\p{C}]/gu, "").length === 0;
272}
273
274export function safeBigInt(input: string | number | bigint | boolean) {
275 try {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected