Files
divkit/test_data/expression_test_data/methods_signatures_array.json
T
ansestepanov ee12cd4b4d filter function tests
commit_hash:1549bd01f40360f820353cecb97414026573b7bb
2025-08-19 14:10:43 +03:00

216 lines
4.4 KiB
JSON

{
"signatures": [
{
"function_name": "getArray",
"is_method": true,
"doc": "Returns an array value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "array",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getBoolean",
"is_method": true,
"doc": "Returns a boolean value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getColor",
"is_method": true,
"doc": "Returns a color value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getDict",
"is_method": true,
"doc": "Returns a dict value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "dict",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getInteger",
"is_method": true,
"doc": "Returns an integer value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getNumber",
"is_method": true,
"doc": "Returns a number value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getString",
"is_method": true,
"doc": "Returns a string value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getUrl",
"is_method": true,
"doc": "Returns a url value from array by position.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Position in array."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "isEmpty",
"is_method": true,
"doc": "The method returns boolean true if array is empty else false.",
"arguments": [
{
"type": "array",
"doc": "Array."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "filter",
"is_method": true,
"doc": "Returns filtered array by calling boolean function to each element of array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "function",
"doc": "Accepts each element of array, returns bool."
}
],
"result_type": "array",
"platforms": []
}
]
}