1 var keys = require('./keys');
4 * The base implementation of `_.conforms` which doesn't clone `source`.
7 * @param {Object} source The object of property predicates to conform to.
8 * @returns {Function} Returns the new function.
10 function baseConforms(source) {
11 var props = keys(source),
12 length = props.length;
14 return function(object) {
20 var key = props[index],
21 predicate = source[key],
24 if ((value === undefined && !(key in Object(object))) || !predicate(value)) {
32 module.exports = baseConforms;