Bump to v3.2.0.

This commit is contained in:
jdalton
2015-02-12 08:27:43 -08:00
parent d5f4043617
commit b82c7ebc32
92 changed files with 816 additions and 378 deletions

View File

@@ -1,5 +1,4 @@
import MapCache from '../internal/MapCache';
import isFunction from '../lang/isFunction';
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
@@ -58,7 +57,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* // => { 'user': 'barney' }
*/
function memoize(func, resolver) {
if (!isFunction(func) || (resolver && !isFunction(resolver))) {
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {