/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/rxjs/src/util/applyMixins.ts
10 строк
406 B
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
export function applyMixins(derivedCtor: any, baseCtors: any[]) { for (let i = 0, len = baseCtors.length; i < len; i++) { const baseCtor = baseCtors[i]; const propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); for (let j = 0, len2 = propertyKeys.length; j < len2; j++) { const name = propertyKeys[j]; derivedCtor.prototype[name] = baseCtor.prototype[name]; } } }