Skip to content

Commit 40eb32a

Browse files
author
RyLee Harrison
committed
++
1 parent bea37d3 commit 40eb32a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

code/utils/emptyfunction.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/**
2-
* This function accepts and discards inputs; it has no side effects. This is
3-
* primarily useful idiomatically for overridable function endpoints which
4-
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
5-
*/
6-
71
function makeEmptyFunction(arg) {
82
return () => arg;
93
}
@@ -17,4 +11,5 @@ const emptyFunction = {
1711
thatReturnsArgument: arg => arg,
1812
}
1913

20-
export default emptyFunction;
14+
// export default
15+
module.exports =emptyFunction;

0 commit comments

Comments
 (0)