1234567891011121314151617181920 |
- var forOwn = require('./forOwn');
-
- function matches(target, props){
-
- var result = true;
- forOwn(props, function(val, key){
- if (target[key] !== val) {
-
- return (result = false);
- }
- });
- return result;
- }
- module.exports = matches;
|