UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

25 lines 541 B
/** * @module Utilities */ import { isIterable } from "../../collection/implementations/_shared.js"; /** * @internal */ export function resolveOneOrMore(value) { if (isIterable(value)) { return [...value]; } return [value]; } /** * @internal */ export function resolveOneOrMoreStr(name, joinStr = "/") { if (typeof name === "string") { return name; } return resolveOneOrMore(name) .filter((str) => str.length > 0) .join(joinStr); } //# sourceMappingURL=resolve-one-or-more.js.map