Simplify _.isObject check in _.trunc.

This commit is contained in:
John-David Dalton
2014-06-20 12:00:14 -07:00
parent 73429e7779
commit 1c91ec69ba

View File

@@ -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;