Cleanup createIterator and _.contains.

Former-commit-id: 39d4c33e5af0d9338a1725b5c07332a14f453374
This commit is contained in:
John-David Dalton
2012-08-26 01:07:36 -07:00
parent f460c77f2c
commit a5a6cabac6

View File

@@ -657,7 +657,7 @@
data.useHas = data.useHas !== false;
data.useStrict = useStrict == null ? isStrictFast : useStrict;
if (!('noCharByIndex' in data)) {
if (data.noCharByIndex == null) {
data.noCharByIndex = noCharByIndex;
}
if (!data.exit) {
@@ -1884,7 +1884,7 @@
'init': 'false',
'noCharByIndex': false,
'beforeLoop': {
'array': 'if (toString.call(iteratee) == stringClass) return collection.indexOf(target) > -1'
'array': 'if (toString.call(collection) == stringClass) return collection.indexOf(target) > -1'
},
'inLoop': 'if (value === target) return true'
});