return $result ? $result : position($val1, $val2, $val3);
const tweets = await Tweet.find({author}).exec((err, tweets) => tweets.map(o => o.toObject()));
const proceedTweets = tweets.map(tweet => ({ ...tweet, extra: 'stuff' }));
const tweets = await Tweet.find({author}).exec().toArray();
const proceedTweets = tweets.map(tweet => ({ ...tweet, extra: 'stuff' }));
$siteMap = simplexml_load_file($pathSiteMap);
$siteMap->url[3]