linq-js-docs
Version:
use linq and lamdba in javascript
96 lines • 3.72 kB
JSON
{
"histroys": [
{
"since": "2.1.15",
"overloads": [
{
"parameters": [
{
"name": "defaultValue",
"types": [
"any"
],
"descriptions": [
"找不到匹配元素时返回的默认值"
]
},
{
"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": "any",
"descriptions": [
"序列中通过指定函数检测的最后一个元素, 如果未找到匹配元素, 则返回 defaultValue"
]
},
"description": "返回序列中满足条件的最后一个元素. 如果未找到这样的元素, 则返回默认值",
"sees": [
{
"apis": "IEnumerable",
"method": "last"
},
{
"apis": "Enumerable.predicates",
"property": "default"
},
{
"href": "https://msdn.microsoft.com/{language}/library/bb548915(v=vs.110).aspx",
"title": "Microsoft MSDN"
}
]
}
]
},
{
"since": "2.1.17",
"ref": true,
"overloads": [
{
"parameters": [
{ },
{
"types": [
"function",
"string",
"symbol",
"number",
"array",
"object"
]
}
]
}
]
}
]
}