let str = "тинькоф";
let arr = CARDS.map(e=>e.items).flat().filter(e=>e.title.toLocaleLowerCase().includes(str.toLocaleLowerCase()) );
<li
{...sort}
>
<li
name={sort.name}
>
const {sortProperty, ...rest} = sort;
<li
{...rest}
>
removeThisComponent={removeComponent}
Encountered two children with the same key, `null`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
let actionCalculate = '-', inputCalculator = '50-5';
inputCalculator.split(actionCalculate).reduce((firstNumber, secondNumber) => {
let resultNumber;
switch (actionCalculate) {
case '+':
resultNumber = Number(firstNumber) + Number(secondNumber);
break;
case '-':
resultNumber = Number(firstNumber) - Number(secondNumber);
break;
case '*':
resultNumber = Number(firstNumber) * Number(secondNumber);
break;
case '/':
resultNumber = Number(firstNumber) / Number(secondNumber);
break;
};
return resultNumber;
});
const mix = require('laravel-mix');
require('laravel-mix-twig');
mix.setPublicPath('dist');
mix.browserSync({
server : {
baseDir : 'dist',
directory: true,
},
files : ['./dist'],
});
}
mix.sass('src/scss/main.scss', 'css');
mix.js('src/js/main.js', 'js')
.sourceMaps(true)
.extract();
mix.alias({
'@': path.join(__dirname, 'src'),
});
mix.twig({
root : './src/templates',
entries : [
'*.twig',
],
output : './',
});
{
"private": true,
"scripts": {
"dev": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "mix --production"
},
"devDependencies": {
"laravel-mix": "^6.0.43",
"laravel-mix-twig": "^2.0.1"
}
}