{"version":3,"file":"is-select-option.mjs","names":[],"sources":["../src/is-select-option.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 { SelectOption } from \"@stryke/types/form\";\nimport { isEmpty } from \"./is-empty\";\n\n/**\n * Check if the provided value's type is SelectOption\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is of type SelectOption\n */\nexport const isSelectOption = (value: unknown): value is SelectOption => {\n  try {\n    return (\n      !isEmpty((value as SelectOption)?.name) &&\n      \"value\" in (value as SelectOption)\n    );\n  } catch {\n    return false;\n  }\n};\n"],"mappings":";;;;;;;;;AA2BA,MAAa,kBAAkB,UAA0C;AACvE,KAAI;AACF,SACE,CAAC,QAAS,OAAwB,KAAK,IACvC,WAAY;SAER;AACN,SAAO"}