mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Cleanup createIterator and _.contains.
Former-commit-id: 39d4c33e5af0d9338a1725b5c07332a14f453374
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user