updated npm modules
This commit is contained in:
+3
-2
@@ -21,7 +21,7 @@ function foo() {}
|
||||
foo.unicorn = '🦄';
|
||||
|
||||
function wrapper() {
|
||||
return foo() {};
|
||||
return foo();
|
||||
}
|
||||
|
||||
console.log(wrapper.name);
|
||||
@@ -43,7 +43,7 @@ It will copy over the properties `name`, `length`, `displayName`, and any custom
|
||||
|
||||
### mimicFn(to, from)
|
||||
|
||||
It will modify `to` and return it.
|
||||
Modifies the `to` function and returns it.
|
||||
|
||||
#### to
|
||||
|
||||
@@ -61,6 +61,7 @@ Function to mimic.
|
||||
## Related
|
||||
|
||||
- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
|
||||
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user