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