mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Bump to v3.2.0.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var debounce = require('./debounce'),
|
||||
isFunction = require('../lang/isFunction'),
|
||||
isObject = require('../lang/isObject');
|
||||
|
||||
/** Used as the `TypeError` message for "Functions" methods. */
|
||||
@@ -54,7 +53,7 @@ function throttle(func, wait, options) {
|
||||
var leading = true,
|
||||
trailing = true;
|
||||
|
||||
if (!isFunction(func)) {
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
if (options === false) {
|
||||
|
||||
Reference in New Issue
Block a user