function shuffle(array) {
var currentIndex = array.length, temporaryValue, randomIndex;
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
temporaryValue = array[currentIndex];
array[currentIndex] = array[randomIndex];
array[randomIndex] = temporaryValue;
}
return array;
}
.ui-dialog-buttonpane button.ui-button:first-child
lighten(#ff7fa1, 20%)
darken(#ff7fa1, 20%)
saturate(#ff7fa1, 20%)
desaturate(#ff7fa1, 20%)
.babelrc
добавить плагин transform-object-rest-spread
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}
]
],
"plugins": ["transform-object-rest-spread"],
"comments": false
}
window.onload = () => {
const h2 = document.querySelectorAll('h2');
[...h2].map(item => {
item.addEventListener('mousemove', e => {
e.target.style.color = 'yellow';
});
item.addEventListener('mouseout', e => {
e.target.style.color = 'red';
});
});
}
\31 u\24
= 1$
<div class="1$"></div>
$json = '...';
$data = json_decode($json, true);
$comment = 77098646;
$results = array_filter($data['data'], function ($item) use ( $comment ) {
return $item['comment'] == $comment;
});
$status = $results ? 1 : 0;
Route::domain
. Вы такой костыль делаете... $data = [
'64 654 руб.',
'231 654 руб.',
'9 879 руб.',
'164 руб.',
'2 815 руб.',
];
usort($data, function ($a, $b) {
return preg_replace('/[^0-9]/', '', $a) <=> preg_replace('/[^0-9]/', '', $b);
});
$min = current($data);