| Path : /proc/thread-self/root/var/www/html/smartcirqls.com/vendors/moment/src/lib/utils/ |
| Current File : //proc/thread-self/root/var/www/html/smartcirqls.com/vendors/moment/src/lib/utils/extend.js |
import hasOwnProp from './has-own-prop';
export default function extend(a, b) {
for (var i in b) {
if (hasOwnProp(b, i)) {
a[i] = b[i];
}
}
if (hasOwnProp(b, 'toString')) {
a.toString = b.toString;
}
if (hasOwnProp(b, 'valueOf')) {
a.valueOf = b.valueOf;
}
return a;
}