Fixed lodash migration issues after upgrade to 4.x.

Moved: _.contains -> _.includes
		   _.object -> _.zipObject
		   _.first - replaced by native slice()
This commit is contained in:
Alexander Zobnin
2016-09-17 21:25:26 +03:00
parent 74503655bd
commit 70503a0647
3 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ export function isTemplateVariable(str, templateVariables) {
var variables = _.map(templateVariables, variable => {
return '$' + variable.name;
});
return _.contains(variables, str);
return _.includes(variables, str);
} else {
return false;
}