mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +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.useHas = data.useHas !== false;
|
||||||
data.useStrict = useStrict == null ? isStrictFast : useStrict;
|
data.useStrict = useStrict == null ? isStrictFast : useStrict;
|
||||||
|
|
||||||
if (!('noCharByIndex' in data)) {
|
if (data.noCharByIndex == null) {
|
||||||
data.noCharByIndex = noCharByIndex;
|
data.noCharByIndex = noCharByIndex;
|
||||||
}
|
}
|
||||||
if (!data.exit) {
|
if (!data.exit) {
|
||||||
@@ -1884,7 +1884,7 @@
|
|||||||
'init': 'false',
|
'init': 'false',
|
||||||
'noCharByIndex': false,
|
'noCharByIndex': false,
|
||||||
'beforeLoop': {
|
'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'
|
'inLoop': 'if (value === target) return true'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user