Move to methods, normalized particles to show/to scroll

This commit is contained in:
Vadim
2021-10-08 16:51:42 +03:00
parent a0b90283c0
commit 7652208ea9
3 changed files with 72 additions and 62 deletions

View File

@@ -7,3 +7,7 @@ export const get = (object, fieldName, defaultValue) => {
}
return defaultValue
}
export const switcher = (description) => (key) => {
description[key] && description[key]()
}