UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

12 lines (11 loc) 254 B
import { typeDetect } from "./type-detect.mjs"; const COLLECTION_TYPE_SET = /* @__PURE__ */ new Set([ "Arguments", "Array", "Map", "Object", "Set" ]); export function isCollection(value) { return COLLECTION_TYPE_SET.has(typeDetect(value)); }