Fix backward compatibility with lodash 2.4, fixes #279.

This commit is contained in:
Alexander Zobnin
2016-09-27 20:15:05 +03:00
parent 22f3e9861c
commit 07ad717df4
2 changed files with 10 additions and 0 deletions

View File

@@ -504,3 +504,8 @@ function sequence(funcsArray) {
return result;
};
}
// Fix for backward compatibility with lodash 2.4
if (!_.includes) {
_.includes = _.contains;
}

View File

@@ -93,3 +93,8 @@ export function convertToZabbixAPIUrl(url) {
return url.replace(trimSlashPattern, "$1");
}
}
// Fix for backward compatibility with lodash 2.4
if (!_.includes) {
_.includes = _.contains;
}