UNPKG
free-context
Version:
latest (0.0.0)
0.0.0
Free context from a function.
github.com/jamen/free-context
jamen/free-context
free-context
/
index.js
7 lines
(5 loc)
•
117 B
JavaScript
View Raw
1
2
3
4
5
6
7
module.exports = free function
free
(
fn
, apply) {
if
(apply)
return
fn
.apply.
bind
(
fn
)
return
fn
.call.
bind
(
fn
) }