Bump to v4.14.0.

This commit is contained in:
John-David Dalton
2016-07-24 09:52:04 -07:00
parent 2ab869e88a
commit edb45df54b
219 changed files with 1852 additions and 1345 deletions

View File

@@ -1,7 +1,4 @@
define(['./keys'], function(keys) {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
define(['./_baseConformsTo', './keys'], function(baseConformsTo, keys) {
/**
* The base implementation of `_.conforms` which doesn't clone `source`.
@@ -11,25 +8,9 @@ define(['./keys'], function(keys) {
* @returns {Function} Returns the new spec function.
*/
function baseConforms(source) {
var props = keys(source),
length = props.length;
var props = keys(source);
return function(object) {
if (object == null) {
return !length;
}
var index = length;
while (index--) {
var key = props[index],
predicate = source[key],
value = object[key];
if ((value === undefined &&
!(key in Object(object))) || !predicate(value)) {
return false;
}
}
return true;
return baseConformsTo(object, source, props);
};
}