{"version":3,"file":"is-collection.mjs","names":[],"sources":["../src/is-collection.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       🗲 Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Collection } from \"@stryke/types/base\";\nimport { typeDetect } from \"./type-detect\";\n\nconst COLLECTION_TYPE_SET = new Set([\n  \"Arguments\",\n  \"Array\",\n  \"Map\",\n  \"Object\",\n  \"Set\"\n]);\n\n/**\n * Check if the provided value's type is `Collection`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Collection`\n */\nexport function isCollection(value: any): value is Collection {\n  return COLLECTION_TYPE_SET.has(typeDetect(value));\n}\n"],"mappings":";;;AAqBA,MAAM,sBAAsB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACD,CAAC;;;;;;;AAQF,SAAgB,aAAa,OAAiC;AAC5D,QAAO,oBAAoB,IAAI,WAAW,MAAM,CAAC"}