SIGN IN SIGN UP

A modern JavaScript utility library delivering modularity, performance, & extras.

0 0 50 JavaScript
2016-07-24 09:52:04 -07:00
define(['./_baseConformsTo', './keys'], function(baseConformsTo, keys) {
2015-12-16 17:53:20 -08:00
/**
* The base implementation of `_.conforms` which doesn't clone `source`.
*
* @private
* @param {Object} source The object of property predicates to conform to.
2016-05-07 11:49:46 -07:00
* @returns {Function} Returns the new spec function.
2015-12-16 17:53:20 -08:00
*/
function baseConforms(source) {
2016-07-24 09:52:04 -07:00
var props = keys(source);
2015-12-16 17:53:20 -08:00
return function(object) {
2016-07-24 09:52:04 -07:00
return baseConformsTo(object, source, props);
2015-12-16 17:53:20 -08:00
};
}
return baseConforms;
});