不要怂,就是干,撸起袖子干!

Commit 76ade8e0 by Jan Aagaard Meier

Merge pull request #4044 from appropos/master

Don't override lodash includes() function.
2 parents 471cc793 b5902667
Showing with 0 additions and 5 deletions
...@@ -15,11 +15,6 @@ var Utils = module.exports = { ...@@ -15,11 +15,6 @@ var Utils = module.exports = {
var _ = lodash; var _ = lodash;
_.mixin({ _.mixin({
includes: function(str, needle){
if (needle === '') return true;
if (str === null) return false;
return String(str).indexOf(needle) !== -1;
},
camelizeIf: function(string, condition) { camelizeIf: function(string, condition) {
var result = string; var result = string;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!