mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Use more ES2015.
This commit is contained in:
@@ -9,10 +9,8 @@ import keys from './keys.js';
|
||||
* @returns {Function} Returns the new spec function.
|
||||
*/
|
||||
function baseConforms(source) {
|
||||
var props = keys(source);
|
||||
return function(object) {
|
||||
return baseConformsTo(object, source, props);
|
||||
};
|
||||
const props = keys(source);
|
||||
return object => baseConformsTo(object, source, props);
|
||||
}
|
||||
|
||||
export default baseConforms;
|
||||
|
||||
Reference in New Issue
Block a user