Skip to main content
Home

Built and signed on GitHub Actions

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
a year ago (0.0.4)
Package root>index.ts
/** * 这是一个js工具库 * @module jsr-utils */ /** * 获取数据类型 * @param target 目标数据 * @returns string */ export function getType<T>(target: T): string { return Object.prototype.toString.call(target).slice(8, -1) } /** * 判断是否是字符串 * @param str 目标数据 * @returns string */ export function isString(str: unknown):boolean{ return getType(str) === 'String' }