mithril-vndb/pathname/assign.js
Daniel Loomer 10f0b4934a support falsy arguments in Object.assign polyfill (#2433)
* support falsy arguments in Object.assign polyfill

* add tests for assign polyfill
2019-06-15 22:48:24 -04:00

5 lines
162 B
JavaScript

"use strict"
module.exports = Object.assign || function(target, source) {
if(source) Object.keys(source).forEach(function(key) { target[key] = source[key] })
}