Внедрение зависимостей (dependency injection) через свойства-функции в JavaScripthttps://habr.com/ru/post/528890/