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