Bump to v4.16.5.

This commit is contained in:
John-David Dalton
2016-10-30 20:12:25 -07:00
parent 39e2b943dc
commit a3710bba34
116 changed files with 710 additions and 706 deletions

View File

@@ -14,7 +14,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
@@ -48,7 +48,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {