1 parent bea37d3 commit 40eb32aCopy full SHA for 40eb32a
1 file changed
code/utils/emptyfunction.js
@@ -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
-
7
function makeEmptyFunction(arg) {
8
return () => arg;
9
}
@@ -17,4 +11,5 @@ const emptyFunction = {
17
11
thatReturnsArgument: arg => arg,
18
12
19
13
20
-export default emptyFunction;
14
+// export default
15
+module.exports =emptyFunction;
0 commit comments