/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/scene/container/utils/assignWithIgnore.ts
22 строки
648 B
Zyie
chore: add standard/advanced tags to documentation (#11448)
03 июн 2025, 10:12
Не верифицирован
03 июн 2025, 10:12
7d91234
Код
Авторство
О чём код?
/** * Assigns properties from one object to another, using an optional array of property names to ignore. * @param target - The target object to assign properties to. * @param options - The object to assign properties from. * @param ignore - An object of property names to ignore ({ propToIgnore: true }). * @category utils * @internal */ export function assignWithIgnore<T extends Record<string, any>>( target: T, options: T, ignore: Record<string, boolean> = {} ) { for (const key in options) { if (!ignore[key] && options[key] !== undefined) { target[key] = options[key]; } } }