яж говорю, не шарю :-)Тут не гордиться надо, а стыдиться.
const result = [1, 2, 3].map((x) => x + 1);
const result = [2, 3, 4];
function mapper(f) {
const foo = (a) => map(a, f);
return foo;
}
'http' => [
'method' => 'POST',
'header' => "Content-type: application/json\r\nAuthorization: Bearer токен",
'content' => json_encode(
[
[
'text' => 'text',
'complete_till' => 1661578861
]
],
JSON_UNESCAPED_UNICODE
)
]
sites[i].name