|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
484 bytes
|
| Line | |
|---|
| 1 | var baseConformsTo = require('./_baseConformsTo'),
|
|---|
| 2 | keys = require('./keys');
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | * The base implementation of `_.conforms` which doesn't clone `source`.
|
|---|
| 6 | *
|
|---|
| 7 | * @private
|
|---|
| 8 | * @param {Object} source The object of property predicates to conform to.
|
|---|
| 9 | * @returns {Function} Returns the new spec function.
|
|---|
| 10 | */
|
|---|
| 11 | function baseConforms(source) {
|
|---|
| 12 | var props = keys(source);
|
|---|
| 13 | return function(object) {
|
|---|
| 14 | return baseConformsTo(object, source, props);
|
|---|
| 15 | };
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | module.exports = baseConforms;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.