UNPKG

validate-types

Version:

Validate object properties against type schema

7 lines (6 loc) 163 B
module.exports = function assign(target, source) { Object.keys(source).forEach(function(key) { target[key] = source[key]; }); return target; }