DE
Size: a a a
DE
DE
[a-zA-Z0-9_]
DE
DE
🇧
[a-zA-Z0-9_]
:|
var path = {
public: {
js: '../public/js/',
css: '../public/css/',
img: '../public/img/',
fonts: '../public/fonts/'
},
src: {
js: './source/js/*.js',
style: './source/sass/style.scss',
img: './source/img/*.*',
fonts: './source/fonts/**/*.*'
},
};
var config = {
server: {
baseDir: "../public"
},
tunnel: true,
host: 'localhost',
port: 9000,
logPrefix: "Frontend_Devil"
};
gulp.task('js:build', function () {
gulp.src(path.src.js)
.pipe(minify())
.pipe(gulp.dest(path.public.js))
.pipe(reload({stream: true}));
});
Education/frontend$ gulp js:build
[18:11:18] Using gulpfile ~/GIT/Education/frontend/gulpfile.js
[18:11:18] Starting 'js:build'...
[18:11:18] Finished 'js:build' after 5.38 ms
VI
const a = [{
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_day"
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_month
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_week
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_day
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_week
}];
turn a.reduce((acc, val) => {а выходе получаю вот такую структура
if(!acc[val.type]) {
acc[val.type] = [];
}
acc[val.type].push(val);
return acc;
}, {});
н
st_day: [{Все которые с типом “first_day”}],я могу получить в итоге ответ следующего характера
first_week:[{Все которые с типом “first_week”}],
first_month:[{Все которые с типом “first_month”}]
}
как
_day: {ажите плиз, а то уже все глаза замылил.
HR operations | New employee induction (General): [{Все которые с типом first_day, и одинаковой task}]
},
first_week: {
HR operations | New employee induction (General): [{Все которые с типом first_week, и одинаковой task}]
},
first_month: {
HR operations | New employee induction (General): [{Все которые с типом first_month, и одинаковой task}]
}
}
Подск
DE
VI
RU
yarn outdated
говорит, что всё обновлено, хотя есть новые версии пакетов?RU
В
const a = [{
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_day"
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_month
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_week
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_day
}, {
question_id: 1
task: "HR operations | New employee induction (General)"
type: "first_week
}];
turn a.reduce((acc, val) => {а выходе получаю вот такую структура
if(!acc[val.type]) {
acc[val.type] = [];
}
acc[val.type].push(val);
return acc;
}, {});
н
st_day: [{Все которые с типом “first_day”}],я могу получить в итоге ответ следующего характера
first_week:[{Все которые с типом “first_week”}],
first_month:[{Все которые с типом “first_month”}]
}
как
_day: {ажите плиз, а то уже все глаза замылил.
HR operations | New employee induction (General): [{Все которые с типом first_day, и одинаковой task}]
},
first_week: {
HR operations | New employee induction (General): [{Все которые с типом first_week, и одинаковой task}]
},
first_month: {
HR operations | New employee induction (General): [{Все которые с типом first_month, и одинаковой task}]
}
}
Подск
AW
RU
yarn why react-redux
- посмотри какая версия щас