You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何检查数组中是否存在指定元素?(含动态字段实现示例)

数组元素存在性检查示例

输入

{
  "numbers": [
    "1234",
    "9999",
    "0123",
    "2311",
    "9911",
    "5410"
  ],
  "number": "9999"
}

输出

{
  "numberExists": "true"
}

所有字段均为动态字段,不可进行硬编码

内容的提问来源于stack exchange,提问作者Kaushik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.02 06:02:01