mirror of
https://git.hmsn.ink/kospo/helptalk/api.git
synced 2026-03-20 18:23:32 +09:00
first
This commit is contained in:
10
sample/dev/talk/bundle/mithril-2.2.2/util/assign.js
Normal file
10
sample/dev/talk/bundle/mithril-2.2.2/util/assign.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// This exists so I'm only saving it once.
|
||||
"use strict"
|
||||
|
||||
var hasOwn = require("./hasOwn")
|
||||
|
||||
module.exports = Object.assign || function(target, source) {
|
||||
for (var key in source) {
|
||||
if (hasOwn.call(source, key)) target[key] = source[key]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user