{"version":3,"file":"is-array-like.mjs","names":[],"sources":["../src/is-array-like.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 { isEmpty } from \"./is-empty\";\nimport { isNumber } from \"./is-number\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is \"array-like\"\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is \"array-like\"\n */\nexport const isArrayLike = (value: any): boolean => {\n  return (\n    isObject(value) &&\n    !isEmpty(value) &&\n    \"length\" in value &&\n    isNumber(value.length) &&\n    (value.length === 0 ||\n      (value.length > 0 &&\n        Object.prototype.hasOwnProperty.call(value, value.length - 1)))\n  );\n};\n"],"mappings":";;;;;;;;;;;AA4BA,MAAa,eAAe,UAAwB;AAClD,QACE,SAAS,MAAM,IACf,CAAC,QAAQ,MAAM,IACf,YAAY,SACZ,SAAS,MAAM,OAAO,KACrB,MAAM,WAAW,KACf,MAAM,SAAS,KACd,OAAO,UAAU,eAAe,KAAK,OAAO,MAAM,SAAS,EAAE"}