linq-js-docs
Version:
use linq and lamdba in javascript
96 lines • 3.8 kB
JSON
{
"histroys": [
{
"since": "2.1.15",
"overloads": [
{
"parameters": [
{
"name": "predicate",
"types": [
"function",
"string",
"symbol",
"number"
],
"descriptions": [
"用于检测每个元素是否满足条件的函数"
],
"defaultValue": "defaultPredicate",
"declare": {
"returns": {
"type": "boolean"
},
"parameters": [
{
"name": "element",
"types": [
"any"
]
},
{
"name": "index",
"types": [
"number"
]
}
]
}
}
],
"returns": {
"type": "boolean",
"descriptions": [
"如果源序列中的有任何元素能在指定筛选器的检测中返回true或者序列为空,则返回true,否则返回false"
]
},
"description": "确定序列中是否存在满足条件的元素",
"remarks": [
"在循环过程中, 当可以确定的结果时, 循环就会立即停止。"
],
"warnings": [
"此方法不会返回序列中任何元素, 它只会确认集合中是否存在满足条件的元素"
],
"sees": [
{
"apis": "IEnumerable",
"method": "all"
},
{
"apis": "IEnumerable",
"method": "contains"
},
{
"apis": "Enumerable.predicates",
"property": "default"
},
{
"href": "https://msdn.microsoft.com/{language}/library/bb534972(v=vs.110).aspx",
"title": "Microsoft MSDN"
}
]
}
]
},
{
"since": "2.1.17",
"ref": true,
"overloads": [
{
"parameters": [
{
"types": [
"function",
"string",
"symbol",
"number",
"array",
"object"
]
}
]
}
]
}
]
}