UNPKG

phoenix

Version:

The official JavaScript client for the Phoenix web framework.

10 lines (9 loc) 213 B
// wraps value in closure or returns closure export let closure = (value) => { if(typeof value === "function"){ return value } else { let closure = function (){ return value } return closure } }