Sha256: c50fc6547a47313246ff4ca7348b5bbe6370ff7f94be38f8301ce1d2f0bbc263

Contents?: true

Size: 345 Bytes

Versions: 85

Compression:

Stored size: 345 Bytes

Contents

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;
}

Version data entries

85 entries across 84 versions & 14 rubygems

Version Path
date_picker-0.0.3 test/dummy/vendor/assets/components/moment/src/lib/utils/extend.js
date_picker-0.0.2 test/dummy/vendor/assets/components/moment/src/lib/utils/extend.js
date_picker-0.0.1 test/dummy/vendor/assets/components/moment/src/lib/utils/extend.js
puppet-herald-0.8.1 lib/puppet-herald/public/bower_components/moment/src/lib/utils/extend.js
puppet-herald-0.8.0 lib/puppet-herald/public/bower_components/moment/src/lib/utils/extend.js