Skip to content

Commit

Permalink
Align indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
falsyvalues committed Aug 20, 2019
1 parent f90d0ae commit 8b441a5
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,6 @@
*.log*
doc/*.html
node_modules
*.code-workspace
*.sublime-project
*.sublime-workspace
4 changes: 2 additions & 2 deletions .internal/arrayLikeKeys.js
Expand Up @@ -29,8 +29,8 @@ function arrayLikeKeys(value, inherited) {
for (const key in value) {
if ((inherited || hasOwnProperty.call(value, key)) &&
!(skipIndexes && (
// Safari 9 has enumerable `arguments.length` in strict mode.
(key == 'length' ||
// Safari 9 has enumerable `arguments.length` in strict mode.
(key == 'length' ||
// Skip index properties.
isIndex(key, length))
))) {
Expand Down
12 changes: 6 additions & 6 deletions .internal/baseIntersection.js
Expand Up @@ -47,16 +47,16 @@ function baseIntersection(arrays, iteratee, comparator) {

value = (comparator || value !== 0) ? value : 0
if (!(seen
? cacheHas(seen, computed)
: includes(result, computed, comparator)
)) {
? cacheHas(seen, computed)
: includes(result, computed, comparator)
)) {
othIndex = othLength
while (--othIndex) {
const cache = caches[othIndex]
if (!(cache
? cacheHas(cache, computed)
: includes(arrays[othIndex], computed, comparator))
) {
? cacheHas(cache, computed)
: includes(arrays[othIndex], computed, comparator))
) {
continue outer
}
}
Expand Down
12 changes: 6 additions & 6 deletions .internal/baseIsMatch.js
Expand Up @@ -29,9 +29,9 @@ function baseIsMatch(object, source, matchData, customizer) {
while (index--) {
data = matchData[index]
if ((noCustomizer && data[2])
? data[1] !== object[data[0]]
: !(data[0] in object)
) {
? data[1] !== object[data[0]]
: !(data[0] in object)
) {
return false
}
}
Expand All @@ -51,9 +51,9 @@ function baseIsMatch(object, source, matchData, customizer) {
result = customizer(objValue, srcValue, key, object, source, stack)
}
if (!(result === undefined
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
: result
)) {
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
: result
)) {
return false
}
}
Expand Down
4 changes: 2 additions & 2 deletions .internal/equalArrays.js
Expand Up @@ -69,9 +69,9 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
break
}
} else if (!(
arrValue === othValue ||
arrValue === othValue ||
equalFunc(arrValue, othValue, bitmask, customizer, stack)
)) {
)) {
result = false
break
}
Expand Down
6 changes: 3 additions & 3 deletions .internal/equalObjects.js
Expand Up @@ -60,9 +60,9 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
}
// Recursively compare objects (susceptible to call stack limits).
if (!(compared === undefined
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
: compared
)) {
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
: compared
)) {
result = false
break
}
Expand Down
6 changes: 3 additions & 3 deletions .internal/isIterateeCall.js
Expand Up @@ -20,9 +20,9 @@ function isIterateeCall(value, index, object) {
}
const type = typeof index
if (type == 'number'
? (isArrayLike(object) && isIndex(index, object.length))
: (type == 'string' && index in object)
) {
? (isArrayLike(object) && isIndex(index, object.length))
: (type == 'string' && index in object)
) {
return eq(object[index], value)
}
return false
Expand Down
2 changes: 1 addition & 1 deletion .internal/stringToPath.js
Expand Up @@ -14,7 +14,7 @@ const rePropName = RegExp(
')\\]'+ '|' +
// Or match "" as the space between consecutive dots or empty brackets.
'(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))'
, 'g')
, 'g')

/**
* Converts `string` to a property path array.
Expand Down
6 changes: 3 additions & 3 deletions maxBy.js
Expand Up @@ -27,9 +27,9 @@ function maxBy(array, iteratee) {
const current = iteratee(value)

if (current != null && (computed === undefined
? (current === current && !isSymbol(current))
: (current > computed)
)) {
? (current === current && !isSymbol(current))
: (current > computed)
)) {
computed = current
result = value
}
Expand Down
6 changes: 3 additions & 3 deletions minBy.js
Expand Up @@ -27,9 +27,9 @@ function minBy(array, iteratee) {
const current = iteratee(value)

if (current != null && (computed === undefined
? (current === current && !isSymbol(current))
: (current < computed)
)) {
? (current === current && !isSymbol(current))
: (current < computed)
)) {
computed = current
result = value
}
Expand Down
4 changes: 2 additions & 2 deletions split.js
Expand Up @@ -29,9 +29,9 @@ function split(string, separator, limit) {
return []
}
if (string && (
typeof separator == 'string' ||
typeof separator == 'string' ||
(separator != null && !isRegExp(separator))
)) {
)) {
if (!separator && hasUnicode(string)) {
return castSlice(stringToArray(string), 0, limit)
}
Expand Down

0 comments on commit 8b441a5

Please sign in to comment.