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
var sites = [
{ url: 'https://example.com', name: 'Site 1' },
{ url: 'https://example2.com', name: 'Site2' },
];
Тут не гордиться надо, а стыдиться.