@sz-sw/modfn
Creates a function that can be supplied with modifiers:
const modfn = require("@sz-sw/modfn")
const fun = modfn((modifiers, name) => {
console.log(modifiers, name) // ["a", "b", "c"] test
})
fun.a.b.c("test")
Creates a function that can be supplied with modifiers:
const modfn = require("@sz-sw/modfn")
const fun = modfn((modifiers, name) => {
console.log(modifiers, name) // ["a", "b", "c"] test
})
fun.a.b.c("test")
npm i @sz-sw/modfn
0
1.1.1
MIT
1.37 kB
4