You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
211 B

const extraProps = function(props, extra) {
if (typeof extra !== "object") return props
for (let key in props) {
if (extra[key]) props[key] = extra[key]
}
return props
}
module.exports = extraProps