HEX
Server: LiteSpeed
System: Linux s1296.sgp1.mysecurecloudhost.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: bishwesh (1878)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bishwesh/internstolearn.com/node_modules/rxjs/src/util/assign.ts
import { root } from './root';

export function assignImpl(target: Object, ...sources: Object[]) {
  const len = sources.length;
  for (let i = 0; i < len; i++) {
    const source = sources[i];
    for (let k in source) {
      if (source.hasOwnProperty(k)) {
        target[k] = source[k];
      }
    }
  }
  return target;
};

export function getAssign(root: any) {
  return root.Object.assign || assignImpl;
}

export const assign = getAssign(root);