Skip to content

Instantly share code, notes, and snippets.

View artemean's full-sized avatar

Andrii Artemenko artemean

View GitHub Profile
@artemean
artemean / funcs.js
Created March 3, 2018 21:31
Run a function with a given name
function login(a, b) {console.log('login ' + a + b)}
function logout(a) {console.log('logout ')}
function display(a) {console.log('display ')}
const funcs = {
login,
logout,
display
}
function run(wrapper, name, ...args) {