UNPKG

@happyvibess/node-cleaner

Version:

🧹 Interactive CLI tool to find and clean node_modules directories and free up space

20 lines (15 loc) • 345 B
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; }