mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
wip: code formatting nits
This commit is contained in:
@@ -99,7 +99,7 @@ function truncate(string, options) {
|
||||
}
|
||||
result = result.slice(0, newEnd === undefined ? end : newEnd);
|
||||
}
|
||||
} else if (string.indexOf(baseToString(separator), end) != end) {
|
||||
} else if (string.indexOf(baseToString(separator), end) !== end) {
|
||||
const index = result.lastIndexOf(separator);
|
||||
if (index > -1) {
|
||||
result = result.slice(0, index);
|
||||
|
||||
Reference in New Issue
Block a user