mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Simplify _.isObject check in _.trunc.
This commit is contained in:
@@ -7988,7 +7988,7 @@
|
||||
var length = 30,
|
||||
omission = '...';
|
||||
|
||||
if (options && isObject(options)) {
|
||||
if (isObject(options)) {
|
||||
var separator = 'separator' in options ? options.separator : separator;
|
||||
length = 'length' in options ? +options.length || 0 : length;
|
||||
omission = 'omission' in options ? String(options.omission) : omission;
|
||||
|
||||
Reference in New Issue
Block a user