Skip to content

Conversation

@Vittly
Copy link
Collaborator

@Vittly Vittly commented May 6, 2018

No description provided.

@Vittly
Copy link
Collaborator Author

Vittly commented May 6, 2018

@Yeti-or and @zxqfox can you help me with review? =)

@Vittly Vittly force-pushed the fillup@import-notation branch from 70fd18d to 0e8ff34 Compare May 6, 2018 08:26
scope && (importString = helpers.fillup(importString, scope));

return Array.from(importString.split(' ').reduce((acc, importToken) => {
const split = importToken.split(':'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется, что split больше нигде не используется, можно на деструкторизацию заменить:

const [type, value] = importToken.split(':');

main.elem = val;
break;
case 'm': {
const splitMod = val.split('='),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично — можно заменить на деструкторизацию

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется, что стоит отказаться от 4 версии, она вот-вот прекратит поддерживаться

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

создай плиз issue про это со ссылкой на место, где написано, что она перестанет поддерживаться

&& !~acc.m[cell.mod.name].indexOf(cell.mod.val)
&& acc.m[cell.mod.name].push(cell.mod.val);
cell.tech && (acc.t = cell.tech);
&& !~acc.mod[cell.mod.name].indexOf(cell.mod.val)
Copy link
Member

@yarastqt yarastqt May 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну камон ребята: !~acc.mod[cell.mod.name].indexOf(cell.mod.val), запишите нормально

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут везде такое кунфу) но мне тож не нравится

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

через includes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants