Clean up the oopsie. Rebuild the blank exercises.

This commit is contained in:
Michael Frank
2021-05-09 00:39:21 +12:00
parent b984cb4c6f
commit d28d80c46f
1565 changed files with 27186 additions and 199003 deletions
+5 -2
View File
@@ -8,7 +8,7 @@ Useful when you wrap a function in another function and like to preserve the ori
## Install
```
$ npm install --save mimic-fn
$ npm install mimic-fn
```
@@ -21,7 +21,7 @@ function foo() {}
foo.unicorn = '🦄';
function wrapper() {
return foo() {};
return foo();
}
console.log(wrapper.name);
@@ -43,6 +43,8 @@ It will copy over the properties `name`, `length`, `displayName`, and any custom
### mimicFn(to, from)
Modifies the `to` function and returns it.
#### to
Type: `Function`
@@ -59,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