%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/home/medipszd/www/bower_components/moment/src/lib/utils/
Upload File :
Create Path :
Current File : //proc/thread-self/root/home/medipszd/www/bower_components/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;
}

Zerion Mini Shell 1.0