UNPKG

@prokodo/ui

Version:

UI components for production-grade Next.js + Headless CMS (Strapi, Contentful, Headless WordPress) websites by prokodo – built for Core Web Vitals & SEO.

13 lines (12 loc) 558 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const isString = /* @__PURE__ */ __name((e) => typeof e === "string" && e.trim() !== "", "isString"); const isNumber = /* @__PURE__ */ __name((e) => typeof e === "number", "isNumber"); const isArray = /* @__PURE__ */ __name((array) => Array.isArray(array) && array.length > 0, "isArray"); const isNull = /* @__PURE__ */ __name((e) => e === null || e === void 0, "isNull"); export { isArray, isNull, isNumber, isString };