VitorLuizC / uncouple

📂 Uncouple constructors and classes methods into functions.
MIT License
14 stars 1 forks source link

Uncouple methods as high-order functions #1

Open VitorLuizC opened 6 years ago

VitorLuizC commented 6 years ago
import uncouple from 'uncouple'

const { filter: createFilter } = uncouple(Array, 'high-order')

const getFunctions = createFilter((value) => typeof value === 'function')

const user = { ... }

getFunctions(Object.values(user))
VitorLuizC commented 5 years ago

This should be a new package.

VitorLuizC commented 5 years ago

No, it shouldn't.