mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-30 15:07:50 +00:00
17 lines
459 B
JavaScript
17 lines
459 B
JavaScript
import baseConformsTo from './_baseConformsTo.js';
|
|
import keys from './keys.js';
|
|
|
|
/**
|
|
* The base implementation of `_.conforms` which doesn't clone `source`.
|
|
*
|
|
* @private
|
|
* @param {Object} source The object of property predicates to conform to.
|
|
* @returns {Function} Returns the new spec function.
|
|
*/
|
|
function baseConforms(source) {
|
|
const props = keys(source);
|
|
return object => baseConformsTo(object, source, props);
|
|
}
|
|
|
|
export default baseConforms;
|