diff --git a/lodash.src.js b/lodash.src.js index 109a4e497..fa0a20416 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -7803,9 +7803,9 @@ var leading = true; trailing = false; } else if (isObject(options)) { - leading = options.leading; + leading = !!options.leading; maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait); - trailing = 'trailing' in options ? options.trailing : trailing; + trailing = 'trailing' in options ? !!options.trailing : trailing; } function cancel() {