Не связываются у меня эти три представления,
var data = [
{
"id": 111,
"name": "Петров",
"parentID": -1
},
{
"id": 222,
"name": "Алферов",
"parentID": 111
},
{
"id": 333,
"name": "Агапов",
"parentID": 222
},
{
"id": 8,
"name": "Грацкий",
"parentID": -1
},
{
"id": 2,
"name": "Иванов",
"parentID": 8
},
{
"id": 4,
"name": "Адаменко",
"parentID": 2
},
{
"id": 7,
"name": "Ларин",
"parentID": 4
}
]
console.log(data.filter(function(o, i, data){
return i+1 < data.length && o.id == data[i+1].parentID;
}))
echo preg_replace('/(\s[А-ЯЁ])[а-яё]+/u','$1.','Фамилия Имя Отчество');
(async function (){
const token = await client.pop('games:wait');
const {player1} = await client.hgetall('games:wait:' + token);
const accountInfo = await client.hgetall('account:' + player1);
})().catch(e){ console.error(e); }
Version: Build 3143
OS X (10.7 or later is required)
Windows - also available as a portable version
Windows 64 bit - also available as a portable version
Linux repos - also available as a 64 bit or 32 bit tarball
ymaps.geoQuery([[55.765326, 37.627735],[55.637366, 37.719745]].map(function(p){return {coordinates:p, type: 'Point'}}))