aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/_lib/assign/index.js
blob: 227bd88b598bc2ec5f2cb4b3875d624946f3902e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
export default function assign(target, object) {
  if (target == null) {
    throw new TypeError('assign requires that input parameter not be null or undefined');
  }
  for (var property in object) {
    if (Object.prototype.hasOwnProperty.call(object, property)) {
      ;
      target[property] = object[property];
    }
  }
  return target;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage